Skip to content

Commit

Permalink
fixed KeyError / missing subscribed key in Trello lists
Browse files Browse the repository at this point in the history
  • Loading branch information
attie committed Mar 11, 2019
1 parent 15b824e commit 6b39e3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trello/trellolist.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def fetch(self):
self.name = json_obj['name']
self.closed = json_obj['closed']
self.pos = json_obj['pos']
self.subscribed = json_obj['subscribed']
if 'subscribed' in json_obj:
self.subscribed = json_obj['subscribed']

def list_cards(self, card_filter="open", actions=None, query={}):
"""Lists all cards in this list"""
Expand Down

0 comments on commit 6b39e3d

Please sign in to comment.