mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-23 01:55:53 +03:00
Avoid else clause on exception for clarity
This commit is contained in:
parent
94c7fadc98
commit
0f8591a5a8
1 changed files with 1 additions and 2 deletions
|
@ -331,13 +331,12 @@ class RoomCreationHandler(BaseHandler):
|
|||
yield directory_handler.delete_association(
|
||||
requester, alias, send_event=False,
|
||||
)
|
||||
removed_aliases.append(alias_str)
|
||||
except SynapseError as e:
|
||||
logger.warning(
|
||||
"Unable to remove alias %s from old room: %s",
|
||||
alias, e,
|
||||
)
|
||||
else:
|
||||
removed_aliases.append(alias_str)
|
||||
|
||||
# if we didn't find any aliases, or couldn't remove anyway, we can skip the rest
|
||||
# of this.
|
||||
|
|
Loading…
Reference in a new issue