Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
removed bare except
Browse files Browse the repository at this point in the history
  • Loading branch information
Ze7111 committed Oct 2, 2022
1 parent 78a700b commit 1fc94e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ def main(final, decomplie, filename='src\\output.v'):
try: os.system(f'python "src\\{current_time}.tmp"')
except FileNotFoundError: os.system(f'python3 "src\\{current_time}.tmp"')
except KeyboardInterrupt: print(f'\u001b[41m\u001b[30mKeyboard Interrupt Detected\u001b[0m'); exit()
except: print(f'\u001b[41m\u001b[30mError: {filename} Failed to run.\u001b[0m'); exit()
except Exception: print(f'\u001b[41m\u001b[30mError: {filename} Failed to run.\u001b[0m'); exit()
finally: os.remove(f'src\\{current_time}.tmp')

0 comments on commit 1fc94e6

Please sign in to comment.