From a6c8309a752c843457faeb96c9ab39efcf79641d Mon Sep 17 00:00:00 2001 From: Jonathan Weth Date: Mon, 17 Jun 2024 20:34:12 +0200 Subject: [PATCH] Fix log_exceptions to correctly pass args to handle --- evap/evaluation/management/commands/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evap/evaluation/management/commands/tools.py b/evap/evaluation/management/commands/tools.py index fef8f38d0a..ee07ec9e4a 100644 --- a/evap/evaluation/management/commands/tools.py +++ b/evap/evaluation/management/commands/tools.py @@ -35,7 +35,7 @@ def log_exceptions(cls): class NewClass(cls): def handle(self, *args, **options): try: - super().handle(args, options) + super().handle(*args, **options) except Exception: logger.exception("Management command '%s' failed. Traceback follows: ", sys.argv[1]) raise