Commit 0f99fb5f authored by Alexander Schrode's avatar Alexander Schrode Committed by oroulet

Add warning instead of exception

parent baf4aead
......@@ -155,6 +155,9 @@ class Subscription:
async def _call_event(self, eventlist: ua.EventNotificationList):
for event in eventlist.Events:
if event.ClientHandle not in self._monitored_items:
self.logger.warning("Received a notification for unknown handle: %s", event.ClientHandle)
continue
data = self._monitored_items[event.ClientHandle]
result = Event.from_event_fields(data.mfilter.SelectClauses, event.EventFields)
result.server_handle = data.server_handle
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment