Imgur/imgurpython

In method update_album 'ids' are optional in the API but compulsory here

fernand0 opened this issue · 0 comments

Well, I know this library is abandoned but just in case it is useful for somebody:

In file:
https://github.com/Imgur/imgurpython/blob/48abc45a143ee9d2485c22a63b7cd55701d8163c/imgurpython/client.py
In method: update_album you can find:

 if isinstance(post_data['ids'], list):
        post_data['ids'] = ','.join(post_data['ids'])

In the API ids[] is an optional parameter.

Workaround: add '{ids=None, ... } ` to your dictionary when calling this method. You just need it for this parameter, the others are not checked if not present.