sarumont / py-trello

Python API wrapper around Trello's API
BSD 3-Clause "New" or "Revised" License
945 stars 330 forks source link

fixed KeyError / missing subscribed key in Trello lists #283

Closed attie closed 5 years ago

attie commented 5 years ago

I've started getting the following error while calling TrelloList.fetch()

  File ".../venv/lib/python3.6/site-packages/trello/trellolist.py", line 56, in fetch
    self.subscribed = json_obj['subscribed']
KeyError: 'subscribed'

This commit resolves the immediate issue in the same way that from_json() handles it.

There may be further implications that I've not been made aware of.