mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Cronjob: Allow keyboard interrupt
This commit is contained in:
@@ -26,6 +26,8 @@ class Command(BaseCommand):
|
|||||||
try:
|
try:
|
||||||
r = receiver(signal=periodic_task, sender=self)
|
r = receiver(signal=periodic_task, sender=self)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
if isinstance(Exception, KeyboardInterrupt):
|
||||||
|
raise err
|
||||||
if settings.SENTRY_ENABLED:
|
if settings.SENTRY_ENABLED:
|
||||||
from sentry_sdk import capture_exception
|
from sentry_sdk import capture_exception
|
||||||
capture_exception(err)
|
capture_exception(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user