Skip to content

Commit 81c7d44

Browse files
committed
Better syntax
1 parent 9d7fb92 commit 81c7d44

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

readthedocs/core/utils/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,5 @@ def safe_makedirs(directory_name):
222222
try:
223223
os.makedirs(directory_name)
224224
except OSError as e:
225-
if e.errno == errno.EEXIST: # 17, FileExistsError
226-
pass
227-
else:
225+
if e.errno != errno.EEXIST: # 17, FileExistsError
228226
raise

0 commit comments

Comments
 (0)