shares.py 391 B

12345678910
  1. from terroroftinytown.services.base import BaseService
  2. from terroroftinytown.services.status import URLStatus
  3. class SharesService(BaseService):
  4. def process_redirect_body(self, response):
  5. if response.status_code == 301 and 'Location' not in response.headers:
  6. return (URLStatus.not_found, None, None)
  7. return BaseService.process_redirect_body(self, response)