diff options
-rwxr-xr-x | calendar-cli.py | 4 |
1 files 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 '<no uid>' ## 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): |