jcasoft / GoogleCalendarSkill

For Mycroft with new API (https://home.mycroft.ai). A skill to use with Mycroft which allow to interact with google calendar. You can add events with a lot of intents
8 stars 5 forks source link

Crash handling all-day events #2

Closed roadriverrail closed 7 years ago

roadriverrail commented 7 years ago

The GoogleCalendarSkill fails on load because it's encountering an all-day event and, by default, those have no time component.

Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/rhett/.mycroft/skills/GoogleCalendarSkill/main.py", line 87, in start = datetime.datetime.strptime(start,"%Y-%m-%dT%H:%M:%S-%f") File "/usr/lib/python2.7/_strptime.py", line 332, in _strptime (data_string, format)) ValueError: time data '2017-08-12' does not match format '%Y-%m-%dT%H:%M:%S-%f'