diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-01 16:05:32 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-01 16:05:32 -0500 |
commit | 875913eefaba2bea0889fcd8237bd37c1bc8abcc (patch) | |
tree | 828247bcbaca92c5497bf466c1407430a6362495 | |
parent | 5507494a350bd602d47dd69bd2bde90a3de43590 (diff) |
make mkdir_p raise a specific exception
-rw-r--r-- | pokemontools/helpers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pokemontools/helpers.py b/pokemontools/helpers.py index 17e7a74..232a632 100644 --- a/pokemontools/helpers.py +++ b/pokemontools/helpers.py @@ -38,4 +38,5 @@ def mkdir_p(path): except OSError as exc: # Python >2.5 if exc.errno == errno.EEXIST: pass - else: raise + else: + raise exc |