From 26176ccd7338ec4c77e501b7b615ddf35c0f3394 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 22 May 2026 12:22:14 -0400 Subject: [PATCH] [boardgames] Fix lichess error --- vrobbler/apps/boardgames/sources/lichess.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vrobbler/apps/boardgames/sources/lichess.py b/vrobbler/apps/boardgames/sources/lichess.py index e3bbfd6..6068935 100644 --- a/vrobbler/apps/boardgames/sources/lichess.py +++ b/vrobbler/apps/boardgames/sources/lichess.py @@ -113,6 +113,8 @@ def import_chess_games_for_all_users(): scrobbles_to_create = [] for user in User.objects.filter(profile__lichess_username__isnull=False): scrobble_dict = import_chess_games_for_user_id(user.id) + if not scrobble_dict: + continue scrobbles_to_create.append(Scrobble(**scrobble_dict)) if scrobbles_to_create: