summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfb.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/fb.py b/fb.py
index d0dc694..03a7b92 100755
--- a/fb.py
+++ b/fb.py
@@ -397,14 +397,11 @@ class ConfigParser:
def _parse(self, file, ignoreMissing=False):
try:
fh = open(file)
- except OSError as e:
+ except IOError as e:
if ignoreMissing:
if e.errno == errno.ENOENT:
return
raise
- except FileNotFoundError:
- if ignoreMissing:
- return
with fh:
for line in fh: