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