summaryrefslogtreecommitdiff
path: root/poezio/config.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-13 00:47:21 +0200
committermathieui <mathieui@mathieui.net>2017-10-13 00:47:21 +0200
commit69f29969adcd97db8a1ab54ef2bbd5ec7f29a07e (patch)
treec106337fda6d4fbf2312d3ffb0ecb96e8d351f11 /poezio/config.py
parentbbfb834827a47195d1907674399ff18685be4fb9 (diff)
downloadpoezio-69f29969adcd97db8a1ab54ef2bbd5ec7f29a07e.tar.gz
poezio-69f29969adcd97db8a1ab54ef2bbd5ec7f29a07e.tar.bz2
poezio-69f29969adcd97db8a1ab54ef2bbd5ec7f29a07e.tar.xz
poezio-69f29969adcd97db8a1ab54ef2bbd5ec7f29a07e.zip
Improve some bare or redundant excepts
Diffstat (limited to 'poezio/config.py')
-rw-r--r--poezio/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/config.py b/poezio/config.py
index 6fe4fa59..fdcc5cc5 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -360,7 +360,7 @@ class Config(RawConfigParser):
try:
with open(self.file_name, 'r', encoding='utf-8') as df:
lines_before = [line.strip() for line in df]
- except:
+ except OSError:
log.error('Unable to read the config file %s',
self.file_name,
exc_info=True)