Skip to content

Commit 0432ee8

Browse files
committed
Raise on non-existing
1 parent d5c259f commit 0432ee8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/core/utils/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,6 @@ def safe_makedirs(directory_name):
166166
try:
167167
os.makedirs(directory_name)
168168
except OSError:
169-
pass
169+
if e.errno == errno.EEXIST
170+
pass
171+
raise

0 commit comments

Comments
 (0)