diff options
author | Michael Stone <michael@laptop.org> | 2011-01-08 00:30:24 (GMT) |
---|---|---|
committer | Michael Stone <michael@laptop.org> | 2011-01-08 01:18:02 (GMT) |
commit | c28330741fd88f4afb5ba82bc92b2615b8dd4eef (patch) | |
tree | b20d9a3d0bc97c918063ad1991799f99f466dd99 | |
parent | 6b5146b4fa95e623b70180415597125ac9ef9ce0 (diff) |
Use cgitb for tracebacks.
These plain-text tracebacks show nearby code!
-rw-r--r-- | arithmetic.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arithmetic.py b/arithmetic.py index 6100f73..6608c6f 100644 --- a/arithmetic.py +++ b/arithmetic.py @@ -8,7 +8,10 @@ """Arithmetic Activity: A quiz activity for arithmetic.""" from __future__ import with_statement -import sys +import sys, cgitb + +cgitb.enable(format="plain") +cgitb.handler = sys.excepthook import logging import gtk |