On Mon, May 16, 2016 at 11:04:27AM +0200, Guido Günther wrote: > On Sun, May 15, 2016 at 10:35:29PM +0000, Jelmer Vernooij wrote: > > From: Jelmer Vernooij <[email protected]> > > > > The alternative is raising an exception here or hiding the item > > altogether. > > --- > > calypso/webdav.py | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/calypso/webdav.py b/calypso/webdav.py > > index 0299c7a..0c59cc7 100644 > > --- a/calypso/webdav.py > > +++ b/calypso/webdav.py > > @@ -163,7 +163,7 @@ class Item(object): > > Text is the serialized form of the item. > > > > """ > > - return self.object.serialize().decode('utf-8') > > + return self.object.serialize(validate=False).decode('utf-8') > > How would we end up with items we can't serialize? If so shouldn't we > better catch the exception and then pass in validate=False and log an > error?
In this particular case, I suspect it is because newer versions of vobject are stricter. I also have other things that write to the same repositories that are served by Calypso so that is another possible source of non-validating files. Cheers, Jelmer _______________________________________________ Calypso mailing list [email protected] http://keithp.com/mailman/listinfo/calypso
