From 3cb32241a37bd53c156d53802091790a4d8ba644 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Wed, 25 Sep 2024 11:27:53 -0600 Subject: [PATCH] ical: fall back to 30m duration + info message for evs w/o end/duration --- gcalcli/ics.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcalcli/ics.py b/gcalcli/ics.py index c1f0649..d7d7924 100644 --- a/gcalcli/ics.py +++ b/gcalcli/ics.py @@ -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