]> spindle.queued.net Git - midori/commitdiff
Use sys.exc_info() for exception msg in Python 2/3
authorEnrico Tröger <enrico.troeger@uvena.de>
Sun, 31 Oct 2010 21:44:24 +0000 (22:44 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 31 Oct 2010 21:44:24 +0000 (22:44 +0100)
wscript

diff --git a/wscript b/wscript
index 6e5324e2227e43080abbfc5f86be04aede2d4cb6..2193a258ea6150e81b2fa83fd009b8ba9d46dac4 100644 (file)
--- 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))