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: