diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2018-12-17 12:56:05 +0100 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2018-12-17 12:56:05 +0100 |
commit | 103ff3b5d0f4818d784bfa491d81829e32d11f56 (patch) | |
tree | 4be1187ab6682f1bbfeccbaaeabad8ba924f44e0 | |
parent | 54f2b431ee102b89738080b3eb8fdeb09d2b32d4 (diff) | |
download | calendar-cli-103ff3b5d0f4818d784bfa491d81829e32d11f56.zip |
bugfix, ref https://github.com/tobixen/calendar-cli/issues/45
-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): |