imip-agent

Changeset

828:a7cd403b328b
2015-10-13 Paul Boddie raw files shortlog changelog graph Fixed encoding of None values produced by vCalendar parsing.
vContent.py (file)
     1.1 --- a/vContent.py	Tue Oct 13 17:10:40 2015 +0200
     1.2 +++ b/vContent.py	Tue Oct 13 19:29:52 2015 +0200
     1.3 @@ -613,7 +613,7 @@
     1.4  
     1.5          "Encode the given 'value', quoting characters."
     1.6  
     1.7 -        return value.replace("\n", "\\n")
     1.8 +        return (value or "").replace("\n", "\\n")
     1.9  
    1.10  # Utility functions.
    1.11