From c3fef7bc4edecb905bc4c582d3d295d8b6c5f63c Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sun, 15 Jan 2017 12:41:19 +0100 Subject: [PATCH] Syntax fix --- src/configparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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