Skip to content
Snippets Groups Projects
Commit 4fc97e76 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Import errno before comparision

parent 76e43139
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ def main():
try:
os.makedirs(dirname)
except OSError as exc:
import errno
if exc.errno == errno.EEXIST: pass
else: raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment