jtwedt / Climate-Conversations

an app to facilitate conversations about climate events
4 stars 2 forks source link

Fix input validation problem #11

Open kdoroschak opened 7 years ago

kdoroschak commented 7 years ago
[2017-06-10 05:27:02,513] ERROR in app: Exception on /setup/save [POST]
Traceback (most recent call last):
  File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1982, in ws
    response = self.full_dispatch_request()
  File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1614, in fu
    rv = self.handle_user_exception(e)
  File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1517, in ha
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1612, in fu
    rv = self.dispatch_request()
  File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1598, in di
    return self.view_functions[rule.endpoint](**req.view_args)
  File "play_webapp.py", line 63, in save_game_setup
    p4_byear = int(p4_byear)
ValueError: invalid literal for int() with base 10: ''