Don't assume existence of event_id in __str__

This commit is contained in:
Erik Johnston 2016-03-18 14:31:44 +00:00
parent 67ed8065db
commit 58e207cd77
1 changed files with 3 additions and 1 deletions

View File

@ -168,5 +168,7 @@ class FrozenEvent(EventBase):
def __repr__(self):
return "<FrozenEvent event_id='%s', type='%s', state_key='%s'>" % (
self.event_id, self.type, self.get("state_key", None),
self.get("event_id", None),
self.get("type", None),
self.get("state_key", None),
)