Browse Source

Fix TypeError on running webserver

pull/2246/head
Hironsan 1 year ago
parent
commit
67e9cafa4e
1 changed files with 1 additions and 1 deletions
  1. 2
      backend/cli.py

2
backend/cli.py

@ -170,7 +170,7 @@ def main():
# Dispatch handler.
args = parser.parse_args()
if hasattr(args, "env_file") and Path(args.env_file).is_file():
if hasattr(args, "env_file") and args.env_file and Path(args.env_file).is_file():
env.read_env(args.env_file, recurse=False, override=True)
if hasattr(args, "handler"):
django.setup()

Loading…
Cancel
Save