From e33f1d5cc8eba14610a082fb1eb066ba36356d5f Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 14 Mar 2019 10:13:51 +0300 Subject: [PATCH] fix --- feeds/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/tasks.py b/feeds/tasks.py index 65b49de..5812abd 100644 --- a/feeds/tasks.py +++ b/feeds/tasks.py @@ -43,9 +43,9 @@ def execute_feed(feed_pk): feed.last_id = last_id feed.save() print(f'Saved last ID for "{feed}" = "{feed.last_id}"') - bot.stop_bot() feed.last_check = timezone.now() feed.save() + bot.stop_bot() except Exception as e: sentry_sdk.capture_exception(e)