Skip to content

Instantly share code, notes, and snippets.

@themactep
Created March 14, 2010 10:17
Show Gist options
  • Save themactep/331909 to your computer and use it in GitHub Desktop.
Save themactep/331909 to your computer and use it in GitHub Desktop.
#
# a request to http://lastfm-api-ext.appspot.com/2.0/
# with outtype=js sometimes gives me an error like this:
#
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 507, in __call__
handler.get(*groups)
File "/base/data/home/apps/lastfm-api-ext/1.178/main.py", line 60, in get
result = packages[package](params)[method]()
File "/base/data/home/apps/lastfm-api-ext/1.178/LFMPackages/UserData.py", line 201, in getRecentTracks
'uts': int(item.find('date').get('uts')),
AttributeError: 'NoneType' object has no attribute 'get'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment