mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-06 16:06:52 +00:00
raise_from already raises
This commit is contained in:
parent
65bf9f1119
commit
65d1003d01
1 changed files with 4 additions and 4 deletions
|
@ -450,11 +450,11 @@ class Keyring(object):
|
|||
long_retries=True,
|
||||
)
|
||||
except (NotRetryingDestination, RequestSendFailed) as e:
|
||||
raise raise_from(
|
||||
raise_from(
|
||||
KeyLookupError("Failed to connect to remote server"), e,
|
||||
)
|
||||
except HttpResponseException as e:
|
||||
raise raise_from(
|
||||
raise_from(
|
||||
KeyLookupError("Remote server returned an error"), e,
|
||||
)
|
||||
|
||||
|
@ -530,11 +530,11 @@ class Keyring(object):
|
|||
ignore_backoff=True,
|
||||
)
|
||||
except (NotRetryingDestination, RequestSendFailed) as e:
|
||||
raise raise_from(
|
||||
raise_from(
|
||||
KeyLookupError("Failed to connect to remote server"), e,
|
||||
)
|
||||
except HttpResponseException as e:
|
||||
raise raise_from(
|
||||
raise_from(
|
||||
KeyLookupError("Remote server returned an error"), e,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue