Cleaner error if prepare_build fails due to missing 'build' dir
This commit is contained in:
parent
c326a6c971
commit
adf2d92471
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue