[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tmda-cvs
Subject:    CVS: tmda/contrib/cgi tmda-cgi.py,1.6,1.7
From:       Gre7g Luterman <gre7g () users ! sourceforge ! net>
Date:       2003-01-16 22:13:34
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic