Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forum crashes on empty post #11

Open
JeremySilverTongue opened this issue Nov 2, 2015 · 0 comments
Open

Forum crashes on empty post #11

JeremySilverTongue opened this issue Nov 2, 2015 · 0 comments

Comments

@JeremySilverTongue
Copy link

In forum.py, it seems that POST() is trying to check if the post contains no content, and avoid saving it in that case, however when submitting a blank post, I get the following error, which would suggest that the empty post checking is failing.

Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "forum.py", line 95, in Dispatcher
    return DISPATCH[page](env, resp)
  File "forum.py", line 73, in Post
    content = fields['content'][0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant