1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Modified exception handling for notification item publishing to handle any exception

This commit is contained in:
Tuna Celik 2020-08-17 15:13:40 +02:00
parent b8af0c7490
commit 95eb44a87f

View file

@ -38,11 +38,11 @@ class Hook(hook.BaseHook):
encoding=self._encoding
)
)
except ChannelWrongStateError as e:
if recall:
except Exception as e:
if isinstance(e, ChannelWrongStateError) and recall:
self._make_connection_synced()
self._notify(notification_item, False)
return
logger.error("An exception is occurred while "
logger.error("An exception occurred during "
"publishing hook notification item: %s",
e, exc_info=True)