Skip to content
Snippets Groups Projects
Commit e549aac1 authored by Erik Johnston's avatar Erik Johnston
Browse files

Add missing None check

parent 2bca242f
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ class Auth(object):
# Get room creation event:
key = (RoomCreateEvent.TYPE, "", )
create = event.old_state_events.get(key)
if event.prev_events[0][0] == create.event_id:
if create and event.prev_events[0][0] == create.event_id:
if create.content["creator"] == event.state_key:
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment