From cbe9461809fec8eb78ec79249161e34f32db50e6 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Tue, 13 Apr 2021 12:19:48 +0200 Subject: [PATCH] Fix bug --- flatisfy/fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatisfy/fetch.py b/flatisfy/fetch.py index 7d1cc5a..5ffa089 100644 --- a/flatisfy/fetch.py +++ b/flatisfy/fetch.py @@ -308,7 +308,7 @@ def fetch_flats(config): last_fetch_in_db.last_fetch = arrow.get( last_fetch_by_backends[backend] ).date() - else: + elif last_fetch_by_backends[backend]: last_fetch_in_db = last_fetch_model.LastFetch( constraint_name=constraint_name, backend=backend,