0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-17 22:43:50 +01:00
synapse/changelog.d/5645.misc
Hubert Chathi 7b3bc755a3 remove unused and unnecessary check for FederationDeniedError (#5645)
FederationDeniedError is a subclass of SynapseError, which is a subclass of
CodeMessageException, so if e is a FederationDeniedError, then this check for
FederationDeniedError will never be reached since it will be caught by the
check for CodeMessageException above.  The check for CodeMessageException does
almost the same thing as this check (since FederationDeniedError initialises
with code=403 and msg="Federation denied with %s."), so may as well just keep
allowing it to handle this case.
2019-07-09 18:37:39 +01:00

1 line
No EOL
87 B
Text

Remove unused and unnecessary check for FederationDeniedError in _exception_to_failure.