Revision: 4188
Author: btongminh
Date: 2007-09-03 14:28:40 +0000 (Mon, 03 Sep 2007)
Log Message:
-----------
rm cgitb
Modified Paths:
--------------
trunk/pywikipedia/image_replacer.py
Modified: trunk/pywikipedia/image_replacer.py
===================================================================
--- trunk/pywikipedia/image_replacer.py 2007-09-03 11:37:19 UTC (rev 4187)
+++ trunk/pywikipedia/image_replacer.py 2007-09-03 14:28:40 UTC (rev 4188)
@@ -240,7 +240,7 @@
if __name__ == '__main__':
- import sys, cgitb
+ import sys, traceback
output(u'Running ' + __version__)
try:
@@ -251,6 +251,6 @@
except Exception, e:
if type(e) not in (SystemExit, KeyboardInterrupt):
output('A critical error has occured! Aborting!')
- print >>sys.stderr, cgitb.text(sys.exc_info())
+ traceback.print_exc(file = sys.stderr)
r.reporters.exit()
wikipedia.stopme()
\ No newline at end of file
Show replies by date