Skip to content

Commit cd825ed

Browse files
committed
avoid FileExistsError on build dir
1 parent 4c24330 commit cd825ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

solid_node/node/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,10 @@ def _make_build_dirs(self):
301301
build_dirs.append(path.pop(0))
302302
build_dir = '/'.join(build_dirs)
303303
if not os.path.exists(build_dir):
304-
os.mkdir(build_dir)
304+
try:
305+
os.mkdir(build_dir)
306+
except FileExistsError:
307+
pass
305308

306309

307310
class StlRenderStart(Exception):

0 commit comments

Comments
 (0)