Catch SSL errors due to timeouts in Github calls

Fixes 219378902/
This commit is contained in:
Joseph Schorr 2017-02-21 12:31:11 -05:00
parent ef9cb3757d
commit 9db20ff961
3 changed files with 31 additions and 8 deletions

View file

@ -77,7 +77,7 @@ class ApiException(Exception):
return rv
class ExternalServiceTimeout(ApiException):
class ExternalServiceError(ApiException):
def __init__(self, error_description, payload=None):
ApiException.__init__(self, ApiErrorType.external_service_timeout, 520, error_description, payload)