# HG changeset patch # User Paul Boddie # Date 1444757392 -7200 # Node ID fdf18b11959bb5c320c2d86792a19c1facd5e8d3 # Parent f009931c94b7268fe167bd033fcd297e5edc2350 Fixed encoding of None values produced by vCalendar parsing. diff -r f009931c94b7 -r fdf18b11959b vContent.py --- a/vContent.py Thu Oct 08 16:06:20 2015 +0200 +++ b/vContent.py Tue Oct 13 19:29:52 2015 +0200 @@ -613,7 +613,7 @@ "Encode the given 'value', quoting characters." - return value.replace("\n", "\\n") + return (value or "").replace("\n", "\\n") # Utility functions.