Issues

Issue #35 resolved

KeyError: 'fullname' in get_access_token()

eme pe
created an issue

Hi Sybren.

Seems that some Flickr users does not have "fullname" so I get this error when that users tries to auth.

--- cut here --- File "/home/ubuntu/django_app/local/lib/python2.7/site-packages/flickrapi-2.0_beta0-py2.7.egg/flickrapi/auth.py", line 379, in get_access_token access_token_resp['fullname'],

KeyError: 'fullname' --- cut here ---

Maybe changing that line from:

access_token_resp['fullname']

to:

access_token_resp.get('fullname', '') helps?

Comments (2)

  1. Log in to comment