Don't check invites if there aren't any

self-explanatory. Check if the dict is empty before doing anything.
This commit is contained in:
Harvey Tindall 2020-07-18 18:21:36 +01:00
parent b863706d26
commit ef8ff531e3

View File

@ -35,6 +35,7 @@ class Repeat:
def checkInvites():
invites = dict(data_store.invites)
# checkInvite already loops over everything, no point running it multiple times.
if len(invites) != 0:
checkInvite(list(invites.keys())[0])