Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove duplicated error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Nov 2, 2020
1 parent 3b400ec commit 49c1eb9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions synapse/handlers/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,6 @@ async def _create_and_join_rooms(self, user_id: str):
action="join",
ratelimit=False,
)

except ConsentNotGivenError as e:
# Technically not necessary to pull out this error though
# moving away from bare excepts is a good thing to do.
logger.error("Failed to join new user to %r: %r", r, e)
except Exception as e:
logger.error("Failed to join new user to %r: %r", r, e)

Expand Down

0 comments on commit 49c1eb9

Please sign in to comment.