Browse code

Fix printing error in `report_exception(e)`

Fixes `TypeError: unsupported operand type(s) for %: 'NoneType' and 'str'` arising from using string formatting with the /result/ of sys.stderr.write() instead of the argument to it.

AJP authored on 2013/05/08 03:34:05
Showing 1 changed files
... ...
@@ -2052,7 +2052,7 @@ def report_exception(e):
2052 2052
 
2053 2053
 """)
2054 2054
         s = ' '.join(sys.argv)
2055
-        sys.stderr.write("""Invoked as: %s""") % s
2055
+        sys.stderr.write("""Invoked as: %s""" % s)
2056 2056
 
2057 2057
         tb = traceback.format_exc(sys.exc_info())
2058 2058
         e_class = str(e.__class__)