fix(notify): handle KeyboardInterrupt gracefully
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f03542b584
commit
20309244f3
|
@ -28,6 +28,12 @@ class Command(BaseCommand):
|
||||||
)
|
)
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
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:
|
with options["numbers"].open() as f:
|
||||||
numbers = json.load(f)
|
numbers = json.load(f)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue