From 90f10f2c4a06aa1af0d429d540982a1f09d4bd26 Mon Sep 17 00:00:00 2001 From: Tuna Celik Date: Wed, 19 Aug 2020 01:45:05 +0200 Subject: [PATCH] Changed HookNotificationItem preparition priority --- radicale/app/proppatch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/app/proppatch.py b/radicale/app/proppatch.py index 12390b67..e43b5eb6 100644 --- a/radicale/app/proppatch.py +++ b/radicale/app/proppatch.py @@ -113,8 +113,6 @@ class ApplicationProppatchMixin: headers = {"DAV": httputils.DAV_HEADERS, "Content-Type": "text/xml; charset=%s" % self._encoding} try: - xml_answer = xml_proppatch(base_prefix, path, xml_content, - item) hook_notification_item = HookNotificationItem( HookNotificationItemTypes.CPATCH, access.path, @@ -123,6 +121,8 @@ class ApplicationProppatchMixin: encoding=self._encoding ).decode(encoding=self._encoding) ) + xml_answer = xml_proppatch(base_prefix, path, xml_content, + item) self._hook.notify(hook_notification_item) except ValueError as e: logger.warning(