tighturl.py 417 B

1234567891011
  1. from terroroftinytown.services.base import BaseService
  2. from terroroftinytown.client.errors import UnexpectedNoResult
  3. from terroroftinytown.services.status import URLStatus
  4. class TighturlService(BaseService):
  5. def process_redirect(self, response):
  6. try:
  7. return BaseService.process_redirect(self, response)
  8. except UnexpectedNoResult:
  9. return (URLStatus.not_found, None, None)