Syntax fix
This commit is contained in:
parent
869417f506
commit
c3fef7bc4e
|
@ -56,7 +56,7 @@ class BMConfigParser(ConfigParser.SafeConfigParser):
|
||||||
shutil.copyfile(fileName, fileNameBak)
|
shutil.copyfile(fileName, fileNameBak)
|
||||||
# The backup succeeded.
|
# The backup succeeded.
|
||||||
fileNameExisted = True
|
fileNameExisted = True
|
||||||
except IOError, Error:
|
except (IOError, Error):
|
||||||
# The backup failed. This can happen if the file didn't exist before.
|
# The backup failed. This can happen if the file didn't exist before.
|
||||||
fileNameExisted = False
|
fileNameExisted = False
|
||||||
# write the file
|
# write the file
|
||||||
|
|
Loading…
Reference in New Issue
Block a user