Guest User

Untitled

a guest
Sep 3rd, 2013
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. KeyError
  2. KeyError: 'guess'
  3.  
  4. Traceback (most recent call last)
  5. File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
  6. return self.wsgi_app(environ, start_response)
  7. File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/web_transaction.py", line 828, in __call__
  8. result = application(environ, _start_response)
  9. File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/object_wrapper.py", line 237, in __call__
  10. self._nr_instance, args, kwargs, **self._nr_kwargs)
  11. File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/function_trace.py", line 93, in literal_wrapper
  12. return wrapped(*args, **kwargs)
  13. File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
  14. response = self.make_response(self.handle_exception(e))
  15. File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/object_wrapper.py", line 237, in __call__
  16. self._nr_instance, args, kwargs, **self._nr_kwargs)
  17. File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/pre_function.py", line 14, in wrapper
  18. return wrapped(*args, **kwargs)
  19. File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
  20. reraise(exc_type, exc_value, tb)
  21. File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
  22. response = self.full_dispatch_request()
  23. File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
  24. rv = self.handle_user_exception(e)
  25. File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
  26. reraise(exc_type, exc_value, tb)
  27. File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
  28. rv = self.dispatch_request()
  29. File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
  30. return self.view_functions[rule.endpoint](**req.view_args)
  31. File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/object_wrapper.py", line 237, in __call__
  32. self._nr_instance, args, kwargs, **self._nr_kwargs)
  33. File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/function_trace.py", line 93, in literal_wrapper
  34. Display the sourcecode for this frameOpen an interactive python shell in this framereturn wrapped(*args, **kwargs)
  35. File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/object_wrapper.py", line 237, in __call__
  36. self._nr_instance, args, kwargs, **self._nr_kwargs)
  37. File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/transaction_name.py", line 51, in literal_wrapper
  38. return wrapped(*args, **kwargs)
  39. File "/root/languagegame/languagegame/__init__.py", line 61, in decorated
  40. resp = flask.make_response(f(*args, **kwargs))
  41. File "/root/languagegame/languagegame/__init__.py", line 95, in play
  42. next_level = ldb.next_level(db, game)
  43. File "/root/languagegame/languagegame/db.py", line 62, in next_level
  44. n_correct = sum(1 for l in past_levels if l['target'] == l['guess'])
  45. File "/root/languagegame/languagegame/db.py", line 62, in <genexpr>
  46. n_correct = sum(1 for l in past_levels if l['target'] == l['guess'])
  47. KeyError: 'guess'
  48. The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
  49. To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
  50.  
  51. You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
  52.  
  53. dump() shows all variables in the frame
  54. dump(obj) dumps all that's known about the object
  55. Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.
Advertisement
Add Comment
Please, Sign In to add comment