From 103ff3b5d0f4818d784bfa491d81829e32d11f56 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Mon, 17 Dec 2018 12:56:05 +0100 Subject: bugfix, ref https://github.com/tobixen/calendar-cli/issues/45 --- calendar-cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar-cli.py b/calendar-cli.py index d1843fa..34c964c 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -500,8 +500,8 @@ def calendar_agenda(caldav_conn, args): event['uid'] = event['instance'].uid.value if hasattr(event['instance'], 'uid') else '' ## TODO: this will probably break and is probably moot on python3? for attr in vcal_txt_one + ['summary']: - if isinstance(event['summary'], unicode): - event['summary'] = event['summary'].encode('utf-8') + if isinstance(event[attr], unicode): + event[attr] = event[attr].encode('utf-8') print(args.event_template.format(**event)) def todo_select(caldav_conn, args): -- cgit v1.2.3