]> git.xonotic.org Git - xonotic/xonstat.git/commit
Return proper HTTP codes.
authorAnt Zucaro <azucaro@gmail.com>
Wed, 7 Dec 2011 12:04:33 +0000 (07:04 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Wed, 7 Dec 2011 12:04:33 +0000 (07:04 -0500)
commit3b2821d9d8093ba92ca6cd45b8b55cd98ba9eba0
tree32380b680eb609eeea84d88f4583c0d29bcdd53d
parent3d100aafddc364e1ec3e706ab077bc80ae0f6540
Return proper HTTP codes.

The Pyramid documentation isn't very clear when it comes to HTTP
exceptions. They mention that one can either be raised or returned, but
in practice I'm only seeing error code 500 when I raise them. By adding
a textual description to the exception and returning them in the
exception handler (rather than just raise them again), the code seems to
work fine again.
xonstat/views/submission.py