summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2018-12-17 12:56:05 +0100
committerTobias Brox <tobias@redpill-linpro.com>2018-12-17 12:56:05 +0100
commit103ff3b5d0f4818d784bfa491d81829e32d11f56 (patch)
tree4be1187ab6682f1bbfeccbaaeabad8ba924f44e0
parent54f2b431ee102b89738080b3eb8fdeb09d2b32d4 (diff)
downloadcalendar-cli-103ff3b5d0f4818d784bfa491d81829e32d11f56.zip
bugfix, ref https://github.com/tobixen/calendar-cli/issues/45
-rwxr-xr-xcalendar-cli.py4
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):