Skip to content

Commit cf7ef19

Browse files
author
Greg Turnquist
committed
Put an optional test to check before trying to delete MANIFEST file.
1 parent 002dbfa commit cf7ef19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ def build(dir, version, s3bucket, filepath):
209209
shutil.move(old_location, new_location)
210210

211211
os.rmdir(dist_dir)
212-
os.remove(os.path.join(dir, "MANIFEST"))
212+
if os.path.exists(os.path.join(dir, "MANIFEST")):
213+
os.remove(os.path.join(dir, "MANIFEST"))
213214

214215
def package(dir, version, s3bucket, src_filename, sample_filename):
215216
if not os.path.exists(dir):

0 commit comments

Comments
 (0)