Package: khal
Version: 1:0.11.3-2

Since I don't know when exactly, ikhal crashes on timezones:
My events are fetched from a caldav server using vdirsyncer.
When I open an event (any of them) in ikhal and save it without doing any modification, then ikhal crashes with this (truncated) backtrace.

```
File "/usr/lib/python3/dist-packages/khal/ui/editor.py", line 552, in keypress
    self.save(None)
File "/usr/lib/python3/dist-packages/khal/ui/editor.py", line 529, in save
    self.collection.change_collection(
File "/usr/lib/python3/dist-packages/khal/khalendar/khalendar.py", line 294, in change_collection
    self.insert(event, new_collection)
File "/usr/lib/python3/dist-packages/khal/khalendar/khalendar.py", line 224, in insert
    event.href, event.etag = self._storages[calendar].upload(event)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/khal/khalendar/vdir.py", line 210, in upload
    if not isinstance(item.raw, str):
                      ^^^^^^^^
File "/usr/lib/python3/dist-packages/khal/khalendar/event.py", line 385, in raw
    timezone = create_timezone(tzinfo, self.start)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/khal/khalendar/event.py", line 903, in create_timezone
    for one, two in iter(tz._tzinfos.items())  # type: ignore
                         ^^^^^^^^^^^
AttributeError: 'zoneinfo.ZoneInfo' object has no attribute '_tzinfos'
```

Reply via email to