From 875913eefaba2bea0889fcd8237bd37c1bc8abcc Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 1 Sep 2013 16:05:32 -0500 Subject: make mkdir_p raise a specific exception --- pokemontools/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3