From 13ad7828a6428a03ccfac11c53b196220fc5587d Mon Sep 17 00:00:00 2001 From: Jemshid KK Date: Mon, 13 Jan 2020 20:47:04 +0530 Subject: [PATCH] Managed when participants/parties are None --- bookied_sync/participant.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bookied_sync/participant.py b/bookied_sync/participant.py index 6f8a0b7..f49b15b 100644 --- a/bookied_sync/participant.py +++ b/bookied_sync/participant.py @@ -26,6 +26,8 @@ def is_participant(self, name): participants (self) """ parties = self.get("participants") + if type(parties) == type(None): + return True #Warning: Check if it's okay to return True for team in parties: if name.lower() in [ x.lower() for x in team.get("name", {}).values()