Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2018-12-03 10:38:39,205] {app.py:1761} ERROR - Exception on /calcProForma/China Overseas International Center [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 740, in calc_pro_forma
- max_avg_discount=request.json.get('max_avg_discount')
- File "./pricing_curve/Simulation.py", line 768, in calculate_pro_forma
- if params['active_currency'] == 'usd':
- KeyError: 'active_currency'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement