summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logger.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/logger.py b/src/logger.py
index aee7812f..dcd5c224 100644
--- a/src/logger.py
+++ b/src/logger.py
@@ -70,8 +70,9 @@ class Logger(object):
return
try:
makedirs(log_dir)
- except FileExistsError:
- pass
+ except OSError as e:
+ if e.errno != 17: # file exists
+ log.error('Unable to create the log dir', exc_info=True)
except:
log.error('Unable to create the log dir', exc_info=True)
return