From 84a85709215284f686d44cfa80e5ece9551de3e2 Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Mon, 13 Jul 2015 14:23:26 -0400 Subject: [PATCH] The fields 'status' and 'initials' appear optional --- trello/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trello/__init__.py b/trello/__init__.py index af8b4047..b7c69d37 100644 --- a/trello/__init__.py +++ b/trello/__init__.py @@ -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