Skip to content

Commit

Permalink
Update server.py to use raise SystemExit in SIGTERM handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbirse authored Sep 23, 2023
1 parent 16a4d19 commit 8bf34d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weather/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def api(port):
sys.stderr.write('\r ! apiServer Exit\n')

def sigTermHandler(signum, frame):
sys.exit()
raise SystemExit

# MAIN Thread
if __name__ == "__main__":
Expand Down

0 comments on commit 8bf34d7

Please sign in to comment.