mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 03:25:53 +03:00
7b3bc755a3
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.
1 line
No EOL
87 B
Text
1 line
No EOL
87 B
Text
Remove unused and unnecessary check for FederationDeniedError in _exception_to_failure. |