fix unhandled keyboardinterrupts

This commit is contained in:
bakatrouble 2019-11-25 22:51:03 +03:00
parent 0d44427e3c
commit aea200628d

View File

@ -12,9 +12,9 @@ class Command(BaseCommand):
while True:
try:
check_feeds.apply_async()
sleep(10*60)
except KeyboardInterrupt:
return
except Exception as e:
sentry_sdk.capture_exception(e)
traceback.print_exc()
sleep(10*60)