Advertisement
CptAwe

Error

Dec 3rd, 2018
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. [2018-12-03 10:38:39,205] {app.py:1761} ERROR - Exception on /calcProForma/China Overseas International Center [POST]
  2. Traceback (most recent call last):
  3. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
  4. response = self.full_dispatch_request()
  5. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
  6. rv = self.handle_user_exception(e)
  7. File "/usr/local/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
  8. return cors_after_request(app.make_response(f(*args, **kwargs)))
  9. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
  10. reraise(exc_type, exc_value, tb)
  11. File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
  12. raise value
  13. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
  14. rv = self.dispatch_request()
  15. File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
  16. return self.view_functions[rule.endpoint](**req.view_args)
  17. File "/app/app.py", line 740, in calc_pro_forma
  18. max_avg_discount=request.json.get('max_avg_discount')
  19. File "./pricing_curve/Simulation.py", line 768, in calculate_pro_forma
  20. if params['active_currency'] == 'usd':
  21. KeyError: 'active_currency'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement