Skip to content

Instantly share code, notes, and snippets.

@slinkp
Created December 4, 2013 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slinkp/7796609 to your computer and use it in GitHub Desktop.
Save slinkp/7796609 to your computer and use it in GitHub Desktop.
Traceback example
Traceback (most recent call last):
...
data = [(entry["key"], entry["count"]) for entry in response["data"]['subtotal']]
TypeError: 'NoneType' object is unsubscriptable
Locals at innermost frame:
{ 'foo': [],
'bar': True,
'response': { 'data': None,
'status_code': 500,
'status_txt': 'INTERNAL_ERROR'},
'self': <app.foo.BarHandler object at 0x7358190>}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment