From: Enrico Tröger Date: Sun, 31 Oct 2010 21:44:24 +0000 (+0100) Subject: Use sys.exc_info() for exception msg in Python 2/3 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=914d5e38f1e9725d0fbc587c6f6fd07fcf3f26b7;p=midori Use sys.exc_info() for exception msg in Python 2/3 --- diff --git a/wscript b/wscript index 6e5324e2..2193a258 100644 --- a/wscript +++ b/wscript @@ -615,6 +615,6 @@ def shutdown (): command += ' ' + relfolder + os.sep + APPNAME + os.sep + APPNAME print (command) Utils.exec_command (command) - # except Exception as msg: - except Exception, msg: + except Exception: + msg = sys.exc_info()[1] # Python 2/3 compatibility Utils.pprint ('RED', "Failed to run application: " + str (msg))