Skip to content

Commit

Permalink
The fields 'status' and 'initials' appear optional
Browse files Browse the repository at this point in the history
  • Loading branch information
portante committed Jul 13, 2015
1 parent 8b0e22d commit 84a8570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trello/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,13 @@ def get_members(self, filters=None):
members = list()
for obj in json_obj:
m = Member(self.client, obj['id'])
m.status = obj['status'].encode('utf-8')
m.status = obj.get('status', '').encode('utf-8')
m.id = obj.get('id', '')
m.bio = obj.get('bio', '')
m.url = obj.get('url', '')
m.username = obj['username'].encode('utf-8')
m.full_name = obj['fullName'].encode('utf-8')
m.initials = obj['initials'].encode('utf-8')
m.initials = obj.get('initials', '').encode('utf-8')
members.append(m)

return members
Expand Down

0 comments on commit 84a8570

Please sign in to comment.