2
0
Fork 0

fix(notify): handle KeyboardInterrupt gracefully
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2024-05-13 17:03:50 +02:00
parent f03542b584
commit 20309244f3
1 changed files with 6 additions and 0 deletions

View File

@ -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)