From 67e9cafa4e5b07485396df9800dbdd12502f03de Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 20 Jul 2023 20:24:39 +0900 Subject: [PATCH] Fix TypeError on running webserver --- backend/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/cli.py b/backend/cli.py index cb5df61b..1864902e 100644 --- a/backend/cli.py +++ b/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()