Skip to content

Commit

Permalink
#2772 Added quit_msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Jan 19, 2024
1 parent 51227b9 commit 72f2469
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/python/met/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def log_msg(msg):
print(f'{logger.PROMPT} {msg}')

@staticmethod
def quit(msg):
logger.error_msg([msg, "Quit..."])
sys.exit(1)
def quit(msg, do_quit=True):
logger.quit_msg(msg)
if do_quit:
sys.exit(1)

@staticmethod
def quit_msg(msg):
logger.error_msg([msg, "Quit..."])

0 comments on commit 72f2469

Please sign in to comment.