forked from ComputerTech/bastebin
Fix AttributeError in production.py's stop/status commands
This commit is contained in:
parent
2977bfffb1
commit
4199090913
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in New Issue