diff --git a/__init__.py b/__init__.py index c601100..c5bcbd2 100644 --- a/__init__.py +++ b/__init__.py @@ -99,6 +99,8 @@ def calendarCredentials(token = None): def updateCalendars(user, calendars, colors): + if user == None or calendars == None or colors == None: + return COLORS_FILE = os.path.join(os.path.dirname(__file__), 'colors.json') with open(COLORS_FILE) as f: colormap = json.load(f)