diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-04-21 01:24:17 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-04-21 01:32:01 +0100 |
commit | 0cdb32fc43aa2edbdd60fc9f092632a5edf8b348 (patch) | |
tree | d4b10a13791bc35329ab2d18326ce59818169c1f /synapse/rest | |
parent | Broaden the conditions for locally_rejecting invites (diff) | |
download | synapse-0cdb32fc43aa2edbdd60fc9f092632a5edf8b348.tar.xz |
Remove redundant try/except clauses
The `except SynapseError` clauses were pointless because the wrapped functions would never throw a `SynapseError` (they either throw a `CodeMessageException` or a `RuntimeError`). The `except CodeMessageException` is now also pointless because the caller treats all exceptions equally, so we may as well just throw the `CodeMessageException`.
Diffstat (limited to 'synapse/rest')
0 files changed, 0 insertions, 0 deletions