Commit 2fe84a11 authored by mathieui's avatar mathieui

Fix a crash for python < 3.3

parent 703cd1b9
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment