diff options
author | Sean Finney <seanius@debian.org> | 2008-06-26 00:10:09 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-06-26 00:10:09 +0200 |
commit | 5832e7ab80b1470b2d20b710251e4ee4e036e02c (patch) | |
tree | 4dc2d3bcd4d72a512db514a0bb162487cc6bbe7a | |
parent | e4042758f5801106a74a189110e5d521e288b53c (diff) | |
download | patch-tracker-5832e7ab80b1470b2d20b710251e4ee4e036e02c.tar.gz |
don't use html backtrace for cmdline testing
-rwxr-xr-x | pagehandler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pagehandler.py b/pagehandler.py index f9d06f9..eba862f 100755 --- a/pagehandler.py +++ b/pagehandler.py @@ -2,7 +2,6 @@ # -*- coding: utf-8 -*- import cgi -import cgitb; cgitb.enable() import os import sys import patchtracker.Conf as Conf @@ -154,4 +153,7 @@ if __name__ == "__main__": uri = os.getenv("REQUEST_URI") if not uri: uri = sys.argv[1] + else: + import cgitb; + cgitb.enable() CmdHandler(uri).output() |