franziskuskiefer / wunderlist-calendar

A simple Wunderlist-GoogleCalendar script to show ToDos in Google Calendar
9 stars 0 forks source link

wunderlistCalendarId error #1

Closed trusteddigital closed 11 years ago

trusteddigital commented 11 years ago

I'm running on Windows 32bit Python and I'm getting the following error. It's connecting to google okay and creating the calendar.dat file then it's producing the following error. I wonder if you have any ideas.

Traceback (most recent call last): File "C:\Users\matt\Desktop\wunderlist-calendar-master\wunderlist-calendar-mas ter\wunderlist.py", line 231, in main() File "C:\Users\matt\Desktop\wunderlist-calendar-master\wunderlist-calendar-mas ter\wunderlist.py", line 218, in main cal = gCalendar3(deleteDone) File "C:\Users\matt\Desktop\wunderlist-calendar-master\wunderlist-calendar-mas ter\wunderlist.py", line 94, in init self.wunderlistCalendarId = self.getCalendarId() File "C:\Users\matt\Desktop\wunderlist-calendar-master\wunderlist-calendar-mas ter\wunderlist.py", line 114, in getCalendarId print("Found Wunderlist calendar at "+wunderlistCalendarId) TypeError: cannot concatenate 'str' and 'NoneType' objects

franziskuskiefer commented 11 years ago

print("Found Wunderlist calendar at "+wunderlistCalendarId) TypeError: cannot concatenate 'str' and 'NoneType' objects

looks to me like he couldn't find a calendar called "Wunderlist" in your google calendar. Do you have that calendar?

trusteddigital commented 11 years ago

Perfect! You're right. My assumption was that it would create the calendar if it didn't exist. Also, if there are no items in that calendar, it fails.

Perhaps worth adding to readme to create calendar and add an item, else obviously if this does it, even better.

Great little script. Good work!