Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
also discard provider
Browse files Browse the repository at this point in the history
  • Loading branch information
pannal committed May 11, 2017
1 parent 7587860 commit fc00566
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,10 @@ def download_subtitle(self, subtitle):
requests.exceptions.SSLError,
requests.Timeout,
socket.timeout):
logger.error('Provider %r timed out', subtitle.provider_name)
logger.error('Provider %r connection error', subtitle.provider_name)
except:
logger.exception('Unexpected error in provider %r, Traceback: %s', subtitle.provider_name, traceback.format_exc())
self.discarded_providers.add(subtitle.provider_name)
return False

if tries == DOWNLOAD_TRIES:
Expand Down

0 comments on commit fc00566

Please sign in to comment.