From 70f06a8f4068a62933907ec0153f47f32bed0cbc Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 4 Dec 2024 16:56:30 +0100 Subject: [PATCH] Fix an incorrect exception handling --- src/pretix/base/management/commands/runperiodic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/management/commands/runperiodic.py b/src/pretix/base/management/commands/runperiodic.py index 398126298..cd07aad83 100644 --- a/src/pretix/base/management/commands/runperiodic.py +++ b/src/pretix/base/management/commands/runperiodic.py @@ -81,7 +81,7 @@ class Command(BaseCommand): try: r = receiver(signal=periodic_task, sender=self) except Exception as err: - if isinstance(Exception, KeyboardInterrupt): + if isinstance(err, KeyboardInterrupt): raise err if settings.SENTRY_ENABLED: from sentry_sdk import capture_exception