File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -600,7 +600,16 @@ def _svc2svc_event_callback(self, raw: bytes) -> None:
600600 source = message ['headers' ]['source' ]
601601 event_name = message ['headers' ]['event_name' ]
602602 for user_callback in self ._svc2svc_events [source ][event_name ]:
603- user_callback (source , message ['operationId' ], event_name , payload )
603+ try :
604+ user_callback (source , message ['operationId' ], event_name , payload )
605+ except Exception as e : # noqa: BLE001 (need to catch any possible user exception)
606+ logger .warning (
607+ '!!! INTERSECT: event callback function "%s" produced uncaught exception when handling event "%s" from "%s"' ,
608+ user_callback .__name__ ,
609+ event_name ,
610+ source ,
611+ )
612+ logger .warning (e )
604613
605614 @validate_call (config = ConfigDict (revalidate_instances = 'always' ))
606615 def create_external_request (
You can’t perform that action at this time.
0 commit comments