Skip to content

Commit

Permalink
bug: fix exit code 0 at normal shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
wagner-intevation committed May 3, 2023
1 parent b462836 commit 49f9d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intelmq/lib/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def handle_sighup_signal_threading(signum: int,

@atexit.register
def catch_shutdown():
self.stop()
self.stop(exitcode=0)
except Exception as exc:
if self.error_log_exception:
self.logger.exception('Bot initialization failed.')
Expand Down

0 comments on commit 49f9d29

Please sign in to comment.