[Xfce4-commits] <midori:master> Use sys.exc_info() for exception msg in Python 2/3

Christian Dywan noreply at xfce.org
Sun Oct 31 22:50:02 CET 2010


Updating branch refs/heads/master
         to 914d5e38f1e9725d0fbc587c6f6fd07fcf3f26b7 (commit)
       from f2ca46163893e4c6154738d572a0fc5de780a7a0 (commit)

commit 914d5e38f1e9725d0fbc587c6f6fd07fcf3f26b7
Author: Enrico Tröger <enrico.troeger at uvena.de>
Date:   Sun Oct 31 22:44:24 2010 +0100

    Use sys.exc_info() for exception msg in Python 2/3

 wscript |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/wscript b/wscript
index 6e5324e..2193a25 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))



More information about the Xfce4-commits mailing list