From 419909091381878768447d23f05c6ba60ee68d3c Mon Sep 17 00:00:00 2001 From: ComputerTech Date: Tue, 31 Mar 2026 12:30:13 +0100 Subject: [PATCH] Fix AttributeError in production.py's stop/status commands --- production.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/production.py b/production.py index fc3d64d..6ae80cf 100644 --- a/production.py +++ b/production.py @@ -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':