sarumont / py-trello

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

No support for specific http statuses returned from Trello's API #239

Open rbrady opened 6 years ago

rbrady commented 6 years ago

When enabling a boardPlugin, if the plugin already exists the API returns a 409 status code. The code in the trelloclient that deals with response status on boards only supports 200 and 401. Anything else is returned as ResourceUnavailable when that's not the actual result.

https://github.com/sarumont/py-trello/blob/993b13d68b7fcc59417f94c0bb729ba57bccb9a6/trello/trelloclient.py#L222-L225