Advertisement
Guest User

11-7 Price lock error

a guest
Feb 3rd, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. UnboundLocalError
  2. UnboundLocalError: local variable 'LockinPrice' referenced before assignment
  3.  
  4. Traceback (most recent call last)
  5. File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 2309, in __call__
  6. return self.wsgi_app(environ, start_response)
  7. File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 2295, in wsgi_app
  8. response = self.handle_exception(e)
  9. File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1741, in handle_exception
  10. reraise(exc_type, exc_value, tb)
  11. File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
  12. response = self.full_dispatch_request()
  13. File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
  14. rv = self.handle_user_exception(e)
  15. File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
  16. reraise(exc_type, exc_value, tb)
  17. File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
  18. rv = self.dispatch_request()
  19. File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
  20. return self.view_functions[rule.endpoint](**req.view_args)
  21. File "/app/app.py", line 425, in lockin
  22. if not(float(LockinPrice) <= float(locationResult[1])):
  23. UnboundLocalError: local variable 'LockinPrice' referenced before assignment
  24. The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
  25. 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.
  26.  
  27. You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
  28.  
  29. dump() shows all variables in the frame
  30. dump(obj) dumps all that's known about the object
  31. Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement