fix(notify): handle KeyboardInterrupt gracefully

main
Luca 7 months ago
parent f03542b584
commit 20309244f3

@ -28,6 +28,12 @@ class Command(BaseCommand):
)
def handle(self, *args, **options):
try:
self._handle(*args, **options)
except KeyboardInterrupt:
self.stderr.write()
def _handle(self, *args, **options):
with options["numbers"].open() as f:
numbers = json.load(f)

Loading…
Cancel
Save