Skip to content

Commit

Permalink
[fix]: Not failing when VTOTAL1 is not generated
Browse files Browse the repository at this point in the history
  • Loading branch information
hentt30 committed Jun 8, 2021
1 parent 5b0c9a5 commit 21ebe56
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions minushalf/commands/run_atomic_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ def run_atomic(quiet: bool):
logger.info("Atomic program finished execution.")

if not os.path.exists('./VTOTAL1'):
raise FileNotFoundError("VTOTAL0 not found")

logger.info("Changing VTOTAL1 to VTOTAL.ae")
os.rename("VTOTAL1", "VTOTAL.ae")
logger.warning(
"VTOTAL1 not found, thus VTOTAL.ae will not be generated")
else:
logger.info("Changing VTOTAL1 to VTOTAL.ae")
os.rename("VTOTAL1", "VTOTAL.ae")

end_message()

0 comments on commit 21ebe56

Please sign in to comment.