From 313f57701e680e35c4b47fb9762d9a80b6e6eb3b Mon Sep 17 00:00:00 2001 From: "Manuel A. Rodriguez" Date: Mon, 11 Feb 2013 13:30:10 -0500 Subject: [PATCH] reference to undefined exception variable --- Linux/Bungloo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Linux/Bungloo.py b/Linux/Bungloo.py index 004ba6d..9c7f990 100755 --- a/Linux/Bungloo.py +++ b/Linux/Bungloo.py @@ -77,7 +77,7 @@ class Controller(QtCore.QObject): try: with open(self.config_path, 'w+') as f: pickle.dump(self.config, f) - except IOError: + except IOError as e: print self.config_path + " is not writable" print "I/O error({0}): {1}".format(e.errno, e.strerror) @@ -232,4 +232,4 @@ class Console(QtCore.QObject): if __name__ == "__main__": - Bungloo() \ No newline at end of file + Bungloo()