openhealthcare / randomise.me

The Randomise Me Website
http://randomiseme.org
Other
7 stars 8 forks source link

Deal with unexpected POST data #222

Closed davidmiller closed 10 years ago

davidmiller commented 11 years ago

Traceback (most recent call last):

  File "/home/app/randomise_me/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/app/randomise_me/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)

  File "/home/app/randomise_me/local/lib/python2.7/site-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)

  File "/home/app/randomise_me/rm/trials/views/__init__.py", line 136, in post
    report.count = int(self.request.POST['count'])

ValueError: invalid literal for int() with base 10: 'pie'
davidmiller commented 10 years ago

Fixed in https://github.com/openhealthcare/randomise.me/commit/aa749bcc1b0c4a48c2d392a0e755c1c94466c800