Advertisement
CptAwe

Currency Toggle Error

Nov 22nd, 2018
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. [GeoPap]
  2. 817.6999999999999
  3. [GeoPap]
  4. [2018-11-22 11:18:51,336] {app.py:1761} ERROR - Exception on /currencyToggle [POST]
  5. Traceback (most recent call last):
  6. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
  7. response = self.full_dispatch_request()
  8. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
  9. rv = self.handle_user_exception(e)
  10. File "/usr/local/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
  11. return cors_after_request(app.make_response(f(*args, **kwargs)))
  12. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
  13. reraise(exc_type, exc_value, tb)
  14. File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
  15. raise value
  16. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
  17. rv = self.dispatch_request()
  18. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
  19. return self.view_functions[rule.endpoint](**req.view_args)
  20. File "/app/app.py", line 513, in currency_toggle
  21. return pc.currency_toggle()
  22. File "./pricing_curve/PricingCurve.py", line 2496, in currency_toggle
  23. response['prices'][0]['avg_price_per_desk']=float(DATADATA['prices'][0]['avg_price_per_desk'])*to_usd_rate
  24. KeyError: 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement