reference to undefined exception variable

This commit is contained in:
Manuel A. Rodriguez 2013-02-11 13:30:10 -05:00
parent 84a4ede80b
commit 313f57701e

View file

@ -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()
Bungloo()