raise_from already raises

This commit is contained in:
Erik Johnston 2019-02-25 14:34:03 +00:00
parent 65bf9f1119
commit 65d1003d01

View File

@ -450,11 +450,11 @@ class Keyring(object):
long_retries=True, long_retries=True,
) )
except (NotRetryingDestination, RequestSendFailed) as e: except (NotRetryingDestination, RequestSendFailed) as e:
raise raise_from( raise_from(
KeyLookupError("Failed to connect to remote server"), e, KeyLookupError("Failed to connect to remote server"), e,
) )
except HttpResponseException as e: except HttpResponseException as e:
raise raise_from( raise_from(
KeyLookupError("Remote server returned an error"), e, KeyLookupError("Remote server returned an error"), e,
) )
@ -530,11 +530,11 @@ class Keyring(object):
ignore_backoff=True, ignore_backoff=True,
) )
except (NotRetryingDestination, RequestSendFailed) as e: except (NotRetryingDestination, RequestSendFailed) as e:
raise raise_from( raise_from(
KeyLookupError("Failed to connect to remote server"), e, KeyLookupError("Failed to connect to remote server"), e,
) )
except HttpResponseException as e: except HttpResponseException as e:
raise raise_from( raise_from(
KeyLookupError("Remote server returned an error"), e, KeyLookupError("Remote server returned an error"), e,
) )