Skip to content

Commit

Permalink
ical: fall back to 30m duration + info message for evs w/o end/duration
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarnett committed Sep 26, 2024
1 parent db01649 commit 3cb3224
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gcalcli/ics.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ def CreateEventFromVOBJ(
if hasattr(ve, 'duration') and ve.duration.value:
duration = ve.duration.value
else:
duration = timedelta(minutes=0)
printer.msg(
"Falling back to 30m duration for imported event w/o "
"explicit duration or end.\n"
)
duration = timedelta(minutes=30)
if verbose:
print('Duration.....%s' % duration)
end = ve.dtstart.value + duration
Expand Down

0 comments on commit 3cb3224

Please sign in to comment.