Update of /cvsroot/tmda/tmda/contrib/cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv21365
Modified Files:
tmda-cgi.py
Log Message:
Added a try block in case cgitb could not be imported.
Index: tmda-cgi.py
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/tmda-cgi.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- tmda-cgi.py 2 Jan 2003 22:24:31 -0000 1.6
+++ tmda-cgi.py 16 Jan 2003 22:13:32 -0000 1.7
@@ -41,7 +41,11 @@
print "Content-type: text/html\n"
import cgi
-import cgitb; cgitb.enable()
+try:
+ import cgitb
+ cgitb.enable()
+except ImportError:
+ pass
import os
import pwd
import Session
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs