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