Skip to content

Commit

Permalink
fix: changed exit(0) to sys.exit(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Mar 24, 2023
1 parent 2e68ef8 commit 64f57ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aw_server/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import sys

from aw_core.log import setup_logging
from aw_datastore import get_storage_methods
Expand Down Expand Up @@ -91,7 +92,7 @@ def parse_settings():
args = parser.parse_args()
if args.version:
print(__version__)
exit(0)
sys.exit(0)

""" Parse config file """
configsection = "server" if not args.testing else "server-testing"
Expand Down

0 comments on commit 64f57ae

Please sign in to comment.