handle malformed date
This commit is contained in:
parent
c7a2f98421
commit
1b25bb2edc
1 changed files with 4 additions and 1 deletions
|
@ -93,7 +93,10 @@ with DAVClient(
|
|||
task.expand_rrule(yesterday, next_week)
|
||||
due = coerce_date(due)
|
||||
|
||||
start = coerce_date(task.icalendar_component.get("dtstart").dt or yesterday)
|
||||
try:
|
||||
start = coerce_date(task.icalendar_component.get("dtstart").dt or yesterday)
|
||||
except:
|
||||
start = yesterday
|
||||
|
||||
if today < start:
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue