mirror of
https://github.com/element-hq/synapse
synced 2024-09-01 20:20:20 +00:00
flake8
This commit is contained in:
parent
3c1080b6e4
commit
51b17ec566
1 changed files with 2 additions and 3 deletions
|
@ -128,7 +128,7 @@ class ResourceLimitsServerNotices(object):
|
|||
server_notices_tags = tags.get(room_id)
|
||||
need_to_set_tag = True
|
||||
if server_notices_tags:
|
||||
if server_notice_tags.get(SERVER_NOTICE_ROOM_TAG):
|
||||
if server_notices_tags.get(SERVER_NOTICE_ROOM_TAG):
|
||||
# tag already present, nothing to do here
|
||||
need_to_set_tag = False
|
||||
if need_to_set_tag:
|
||||
|
@ -158,7 +158,7 @@ class ResourceLimitsServerNotices(object):
|
|||
pinned_state_event = yield self._state.get_current_state(
|
||||
room_id, event_type=EventTypes.Pinned
|
||||
)
|
||||
except AuthError as e:
|
||||
except AuthError:
|
||||
# The user has yet to join the server notices room
|
||||
pass
|
||||
|
||||
|
@ -167,7 +167,6 @@ class ResourceLimitsServerNotices(object):
|
|||
referenced_events = pinned_state_event.content.get('pinned')
|
||||
|
||||
events = yield self._store.get_events(referenced_events)
|
||||
event_to_remove = None
|
||||
for event_id, event in events.items():
|
||||
if event.type == EventTypes.ServerNoticeLimitReached:
|
||||
currently_blocked = True
|
||||
|
|
Loading…
Reference in a new issue