Cleaner error if prepare_build fails due to missing 'build' dir

This commit is contained in:
Dan Stillman 2023-04-29 16:28:27 -04:00
parent c326a6c971
commit adf2d92471

View file

@ -190,7 +190,7 @@ def main():
# Clean up
finally:
if os.path.exists(tmp_src_dir):
if 'tmp_src_dir' in locals() and os.path.exists(tmp_src_dir):
shutil.rmtree(tmp_src_dir)