mozilla / f1

INACTIVE - http://mzl.la/ghe-archive - F1 is a browser extension that allows you to share links in a fast and fun way. Share links from within the browser, from any webpage, using the same services you already know and love. F1 is made by Mozilla.
http://f1.mozillamessaging.com/
Other
50 stars 10 forks source link

error fetching contacts from linkedin #59

Closed mhammond closed 13 years ago

mhammond commented 13 years ago

From the production logs - it appears linkedin may return null if there are no contacts rather than an empty list:

[Wed Feb 23 08:11:42 2011] [error] 08:11:42,201 ERROR [linkdrop.lib.helpers] [Dummy-2] ((, u'linkedin.com'), {}) failed
[Wed Feb 23 08:11:42 2011] [error] Traceback (most recent call last):
[Wed Feb 23 08:11:42 2011] [error]   File "/home/linkdrop/linkdrop/linkdrop/lib/helpers.py", line 120, in json_exception_response
[Wed Feb 23 08:11:42 2011] [error]     return func(*args, **kwargs)
[Wed Feb 23 08:11:42 2011] [error]   File "/home/linkdrop/linkdrop/linkdrop/controllers/contacts.py", line 122, in get
[Wed Feb 23 08:11:42 2011] [error]     result, error = provider.api(acct).getcontacts(startIndex, maxResults, group)
[Wed Feb 23 08:11:42 2011] [error]   File "/home/linkdrop/linkdrop/linkdrop/lib/oauth/linkedin_.py", line 180, in getcontacts
[Wed Feb 23 08:11:42 2011] [error]     for entry in entries:
[Wed Feb 23 08:11:42 2011] [error] TypeError: 'NoneType' object is not iterable

mixedpuppy commented 13 years ago

fixed