From 914d5e38f1e9725d0fbc587c6f6fd07fcf3f26b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Sun, 31 Oct 2010 22:44:24 +0100 Subject: [PATCH] Use sys.exc_info() for exception msg in Python 2/3 --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))