diff --git a/src/configparser.py b/src/configparser.py index 72fb5f20..37a35868 100644 --- a/src/configparser.py +++ b/src/configparser.py @@ -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