From 69f29969adcd97db8a1ab54ef2bbd5ec7f29a07e Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 13 Oct 2017 00:47:21 +0200 Subject: Improve some bare or redundant excepts --- poezio/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio/config.py') 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) -- cgit v1.2.3