summaryrefslogtreecommitdiffstats
path: root/iredis/config.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-20 09:32:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-20 09:32:29 +0000
commit014c400849f01582f958e1a729ce239ffd7b2268 (patch)
treee30eac025e81b68a50ad7d167270bda28ee3ce21 /iredis/config.py
parentReleasing debian version 1.14.0-1. (diff)
downloadiredis-014c400849f01582f958e1a729ce239ffd7b2268.tar.xz
iredis-014c400849f01582f958e1a729ce239ffd7b2268.zip
Merging upstream version 1.14.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'iredis/config.py')
-rw-r--r--iredis/config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/iredis/config.py b/iredis/config.py
index 4041bb6..7a54220 100644
--- a/iredis/config.py
+++ b/iredis/config.py
@@ -88,13 +88,13 @@ def read_config_file(f):
config = ConfigObj(f, interpolation=False, encoding="utf8")
except ConfigObjError as e:
logger.error(
- "Unable to parse line {0} of config file " "'{1}'.".format(e.line_number, f)
+ "Unable to parse line {} of config file " "'{}'.".format(e.line_number, f)
)
logger.error("Using successfully parsed config values.")
return e.config
- except (IOError, OSError) as e:
+ except OSError as e:
logger.error(
- "You don't have permission to read " "config file '{0}'.".format(e.filename)
+ "You don't have permission to read " "config file '{}'.".format(e.filename)
)
return None