Skip to content

Commit

Permalink
Exit 1 on error (#244)
Browse files Browse the repository at this point in the history
Allows to enhance CLI & scripting experience with this project.

For example, can be used for re-launch the program automatically if it
failed.
  • Loading branch information
klept0 authored Jan 6, 2025
2 parents 4ff9d79 + c6d5889 commit 8604039
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,4 @@ def save_previous_points_data(data):
sendNotification(
"⚠️ Error occurred, please check the log", traceback.format_exc(), e
)
exit(1)

0 comments on commit 8604039

Please sign in to comment.