]> git.xonotic.org Git - xonotic/xonstat.git/commit
Use a dummy session variable.
authorAnt Zucaro <azucaro@gmail.com>
Sat, 8 Sep 2012 18:37:18 +0000 (14:37 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sat, 8 Sep 2012 18:37:18 +0000 (14:37 -0400)
commitcf4e74be3b45d840434ff70c962af1f0cfb78610
treea3a14a19cac7b656de2b29a5c944dc2d0225752a
parentf89b644bba60c18345c12d1cfff82f5af67969b8
Use a dummy session variable.

A little while ago I moved down the creation of the actual
DBSession() below the precondition checks to avoid unnecessary
rollback transactions. What I didn't do was check if the session
existed before using it, so when precondition checks failed I was
calling a variable that wasn't defined yet (another exception).
This adds a dummy session variable that I can check before rolling
back, avoiding more exceptions.
xonstat/views/submission.py