Skip to content

Commit

Permalink
raise SystemExit directly
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Dec 9, 2024
1 parent 8c0fc58 commit 741ac8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions novel/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import sys
import time
import json
import signal
Expand Down Expand Up @@ -142,7 +141,7 @@ def handle_sigterm(signum, frame):
datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
"Title saved before exiting",
)
sys.exit(0)
raise SystemExit(0)


class HealthCheckHandler(http.server.BaseHTTPRequestHandler):
Expand Down

0 comments on commit 741ac8e

Please sign in to comment.