#1089697 Fails to add alarm

#1089697#5
Date:
2024-12-11 13:54:14 UTC
From:
To:
Adding any alarm fails with:


$ khal new --alarms 1d   Tue 7:30 Whatever
Unknown exception happened.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/khal/khalendar/khalendar.py", line 398, in _update_vevent
    update(event.raw, href=href, etag=etag, calendar=calendar)
  File "/usr/lib/python3/dist-packages/khal/khalendar/backend.py", line 226, in update
    if not assert_only_one_uid(ical):
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/khal/icalendar.py", line 362, in assert_only_one_uid
    uids.add(item['UID'])
TypeError: unhashable type: 'list'

Adding events without alarms works.

Note that I'm running 0.11.3-3 built from souce as this didn't make it
into sid yet.

Cheers,
 -- Guido

#1089697#10
Date:
2024-12-16 13:14:33 UTC
From:
To:
control: -1 severity normal
control: -1 retitle Exception when event has duplicate UID line

Hi,

Running "khal edit <eventname>" later on gave the above exception plus a warning:

  warning: Skipping agx/<redacted>.ics: unhashable type: 'list'
  warning: This event will not be available in khal.

Looking at the ics file it showed two identicatl UID lines. Removing one of them
made the exception go away and so far I didn't spot any further problems,
adding events with alarms works too. So lowering the severity as the
exception should likely still be silenced.

I can't pinpoint were the duplicate UID line came from as there wasn't
any conflict resolution or similar.

Cheers,
 -- Guido