control: -1 severity normal control: -1 retitle Exception when event has duplicate UID line
Hi, On Wed, Dec 11, 2024 at 02:54:14PM +0100, Guido Günther wrote: > Package: khal > Version: 1:0.11.3-3 > Severity: important > > 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' 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 > > 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 > > > -- System Information: > Debian Release: trixie/sid > APT prefers testing > APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, > 'testing-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, > 'experimental') > Architecture: amd64 (x86_64) > Foreign Architectures: arm64 > > Kernel: Linux 6.11.10-amd64 (SMP w/12 CPU threads; PREEMPT) > Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE > Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not > set > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled > > Versions of packages khal depends on: > ii python3 3.12.7-1 > ii python3-atomicwrites 1.4.1-1 > ii python3-click 8.1.7-2 > ii python3-click-log 0.3.2-1 > ii python3-configobj 5.0.9-1 > ii python3-dateutil 2.9.0-3 > ii python3-icalendar 6.0.1-1 > ii python3-pkg-resources 74.1.2-2 > ii python3-tz 2024.1-2 > hi python3-tzlocal 2.1-1 > ii python3-urwid 2.6.16-1 > ii python3-xdg 0.28-2 > > Versions of packages khal recommends: > ii python3-setproctitle 1.3.3-1+b5 > > Versions of packages khal suggests: > ii bash-completion 1:2.14.0-2 > pn khal-doc <none> > > -- no debconf information > > -- debsums errors found: > debsums: changed file /usr/lib/python3/dist-packages/khal/icalendar.py (from > khal package)