reference to undefined exception variable
This commit is contained in:
parent
84a4ede80b
commit
313f57701e
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ class Controller(QtCore.QObject):
|
||||||
try:
|
try:
|
||||||
with open(self.config_path, 'w+') as f:
|
with open(self.config_path, 'w+') as f:
|
||||||
pickle.dump(self.config, f)
|
pickle.dump(self.config, f)
|
||||||
except IOError:
|
except IOError as e:
|
||||||
print self.config_path + " is not writable"
|
print self.config_path + " is not writable"
|
||||||
print "I/O error({0}): {1}".format(e.errno, e.strerror)
|
print "I/O error({0}): {1}".format(e.errno, e.strerror)
|
||||||
|
|
||||||
|
|
Reference in a new issue