diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2016-05-02 17:06:48 +0200 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2016-05-02 17:06:48 +0200 |
commit | 4f2020b9f3d04c222da4356bb472f60030ed9ce7 (patch) | |
tree | a2c469ea0c526dde63a40dc779c7a8e0564f3cad /calendar-cli.py | |
parent | 47bd4b078b93815b745725ad5bd353772febf43c (diff) | |
download | calendar-cli-4f2020b9f3d04c222da4356bb472f60030ed9ce7.zip |
unicode issue
Diffstat (limited to 'calendar-cli.py')
-rwxr-xr-x | calendar-cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar-cli.py b/calendar-cli.py index bec67aa..e2778e8 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -599,7 +599,8 @@ def todo_list(caldav_conn, args): break t['uid'] = task.instance.vtodo.uid.value ## TODO: this will probably break and is probably moot on python3? - if hasattr(t['summary'], 'encode'): + if hasattr(t['summary'], 'encode') and isinstance(t['summary'], unicode): + import pdb; pdb.set_trace() t['summary'] = t['summary'].encode('utf-8') print(args.todo_template.format(**t)) |