Syntax fix

This commit is contained in:
Peter Šurda 2017-01-15 12:41:19 +01:00
parent 869417f506
commit c3fef7bc4e
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class BMConfigParser(ConfigParser.SafeConfigParser):
shutil.copyfile(fileName, fileNameBak)
# The backup succeeded.
fileNameExisted = True
except IOError, Error:
except (IOError, Error):
# The backup failed. This can happen if the file didn't exist before.
fileNameExisted = False
# write the file