Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- KeyError
- KeyError: 'guess'
- Traceback (most recent call last)
- File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
- return self.wsgi_app(environ, start_response)
- File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/web_transaction.py", line 828, in __call__
- result = application(environ, _start_response)
- File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/object_wrapper.py", line 237, in __call__
- self._nr_instance, args, kwargs, **self._nr_kwargs)
- File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/function_trace.py", line 93, in literal_wrapper
- return wrapped(*args, **kwargs)
- File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
- response = self.make_response(self.handle_exception(e))
- File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/object_wrapper.py", line 237, in __call__
- self._nr_instance, args, kwargs, **self._nr_kwargs)
- File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/pre_function.py", line 14, in wrapper
- return wrapped(*args, **kwargs)
- File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
- reraise(exc_type, exc_value, tb)
- File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
- response = self.full_dispatch_request()
- File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
- rv = self.handle_user_exception(e)
- File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
- reraise(exc_type, exc_value, tb)
- File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
- rv = self.dispatch_request()
- File "/root/languagegame/env/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
- return self.view_functions[rule.endpoint](**req.view_args)
- File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/object_wrapper.py", line 237, in __call__
- self._nr_instance, args, kwargs, **self._nr_kwargs)
- File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/function_trace.py", line 93, in literal_wrapper
- Display the sourcecode for this frameOpen an interactive python shell in this framereturn wrapped(*args, **kwargs)
- File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/object_wrapper.py", line 237, in __call__
- self._nr_instance, args, kwargs, **self._nr_kwargs)
- File "/root/languagegame/env/lib/python2.7/site-packages/newrelic-1.13.1.31/newrelic/api/transaction_name.py", line 51, in literal_wrapper
- return wrapped(*args, **kwargs)
- File "/root/languagegame/languagegame/__init__.py", line 61, in decorated
- resp = flask.make_response(f(*args, **kwargs))
- File "/root/languagegame/languagegame/__init__.py", line 95, in play
- next_level = ldb.next_level(db, game)
- File "/root/languagegame/languagegame/db.py", line 62, in next_level
- n_correct = sum(1 for l in past_levels if l['target'] == l['guess'])
- File "/root/languagegame/languagegame/db.py", line 62, in <genexpr>
- n_correct = sum(1 for l in past_levels if l['target'] == l['guess'])
- KeyError: 'guess'
- The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
- 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.
- You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
- dump() shows all variables in the frame
- dump(obj) dumps all that's known about the object
- Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.
Advertisement
Add Comment
Please, Sign In to add comment