Skip to content

Commit 7c65cd9

Browse files
authored
fix: Noise in tracebacks (#181)
1 parent 2e0459d commit 7c65cd9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/common/core/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,13 @@ def execute_from_command_line(argv: list[str]) -> None:
8383
"checktaskprocessorthreadhealth": healthcheck.main,
8484
}[subcommand]
8585
except (IndexError, KeyError):
86-
django_execute_from_command_line(argv)
86+
logger.info("Invoking Django")
8787
else:
88-
subcommand_main(
88+
return subcommand_main(
8989
argv[2:],
9090
prog=f"{os.path.basename(argv[0])} {subcommand}",
9191
)
92+
django_execute_from_command_line(argv)
9293

9394

9495
def main(argv: list[str] = sys.argv) -> None:

0 commit comments

Comments
 (0)