From 12fb234fd0f9aa555bf0d418578bcb768ad04aec Mon Sep 17 00:00:00 2001 From: Brice Chardin Date: Tue, 7 Nov 2023 17:24:14 +0100 Subject: [PATCH] Follow black formatting --- caldav/objects.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/caldav/objects.py b/caldav/objects.py index 6bca1ceb..58283e2c 100644 --- a/caldav/objects.py +++ b/caldav/objects.py @@ -202,7 +202,11 @@ def _query( ) or ret.status >= 400: ## COMPATIBILITY HACK - see https://github.com/python-caldav/caldav/issues/309 body = to_wire(body) - if ret.status == 500 and not b"getetag" in body and b"" in body: + if ( + ret.status == 500 + and not b"getetag" in body + and b"" in body + ): body = body.replace( b"", b"" ) @@ -1064,7 +1068,6 @@ def search( ): objects.append(item) else: - if not xml: (xml, comp_class) = self.build_search_xml_query( comp_class=comp_class, todo=todo, props=props, **kwargs