Fix AttributeError in production.py's stop/status commands

This commit is contained in:
ComputerTech 2026-03-31 12:30:13 +01:00
parent 2977bfffb1
commit 4199090913
1 changed files with 2 additions and 2 deletions

View File

@ -285,8 +285,8 @@ def main() -> None:
# args.host and args.port always have values because of 'default' in ArgumentParser.
# We'll re-parse or check the sys.argv.
host = args.host or default_host or '0.0.0.0'
port = args.port or default_port or 5000
host = getattr(args, 'host', None) or default_host or '0.0.0.0'
port = getattr(args, 'port', None) or default_port or 5000
workers = getattr(args, 'workers', None) or default_workers
if args.command == 'start':