From aea200628d9c2cf3bbf0f6ed623d3920160f7037 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 25 Nov 2019 22:51:03 +0300 Subject: [PATCH] fix unhandled keyboardinterrupts --- feeds/management/commands/periodic_feeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/management/commands/periodic_feeds.py b/feeds/management/commands/periodic_feeds.py index 30a7b2a..93aee3c 100644 --- a/feeds/management/commands/periodic_feeds.py +++ b/feeds/management/commands/periodic_feeds.py @@ -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)