Again, don't assume all member events have displayname.

This commit is contained in:
David Baker 2015-01-30 23:10:35 +00:00
parent fe10b882b7
commit 0b354fcb84

View File

@ -101,7 +101,7 @@ class Pusher(object):
# This loop does two things:
# 1) Find our current display name
if mev.state_key == self.user_name:
if mev.state_key == self.user_name and 'displayname' in mev.content:
my_display_name = mev.content['displayname']
# and 2) Get the number of people in that room