mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-02 18:50:52 -05:00
raise_from already raises
This commit is contained in:
parent
65bf9f1119
commit
65d1003d01
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user