alexis-mignon / python-flickr-api

A python implementation of the Flickr API
BSD 3-Clause "New" or "Revised" License
367 stars 108 forks source link

AttributeError: 'NoneType' object has no attribute 'key' #115

Open 7DSMeliodas opened 5 years ago

7DSMeliodas commented 5 years ago

Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/pyrogram/client/ext/dispatcher.py", line 180, in update_worker handler.callback(self.client, *args) File "/home/UB/PyroBot/pyrobot/modules/flickr.py", line 12, in flickr flickr_api.upload(photo_file="/home/UB/PyroBot/downloads/image.png", title="https://t.me/witzeposten_pictures") File "/usr/local/lib/python3.6/dist-packages/flickr_api/upload.py", line 112, in upload r = post(UPLOAD_URL, auth.AUTH_HANDLER, args, photo_file, photo_file_data) File "/usr/local/lib/python3.6/dist-packages/flickr_api/upload.py", line 46, in post args["api_key"] = auth_handler.key AttributeError: 'NoneType' object has no attribute 'key'