Skip to content

Commit f79935d

Browse files
committed
Make sure to check whether the build directory exists
1 parent 3c17abc commit f79935d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

make

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def merge_pages():
8585
return 1
8686

8787
else:
88-
shutil.rmtree('build')
88+
if os.path.exists('build'):
89+
shutil.rmtree('build')
90+
8991
if not os.path.exists('build'):
9092
print 'Copying files...'
9193
os.mkdir('build')

0 commit comments

Comments
 (0)