diff --git a/jellyfin_accounts/invite_daemon.py b/jellyfin_accounts/invite_daemon.py index 504c335..9b6f8bd 100644 --- a/jellyfin_accounts/invite_daemon.py +++ b/jellyfin_accounts/invite_daemon.py @@ -35,7 +35,8 @@ class Repeat: def checkInvites(): invites = dict(data_store.invites) # checkInvite already loops over everything, no point running it multiple times. - checkInvite(list(invites.keys())[0]) + if len(invites) != 0: + checkInvite(list(invites.keys())[0]) if config.getboolean("notifications", "enabled"):