Skip to content

Commit 085d07c

Browse files
committed
cinnamon-calendar-server.py: Allow ICal 4.0.
Distros are starting to see the new ical version. For what we use in the calendar server, there are no additional changes needed. Fixes #13763
1 parent 1511bd1 commit 085d07c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

calendar-server/cinnamon-calendar-server.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
import gi
1414
gi.require_version('EDataServer', '1.2')
1515
gi.require_version('ECal', '2.0')
16-
gi.require_version('ICal', '3.0')
16+
try:
17+
gi.require_version('ICal', '4.0')
18+
except ValueError:
19+
gi.require_version('ICal', '3.0')
1720
gi.require_version('Cinnamon', '0.1')
1821
from gi.repository import GLib, Gio, GObject
1922
from gi.repository import EDataServer, ECal, ICal, ICalGLib

0 commit comments

Comments
 (0)