File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
sam-slack-gateway-adapter/src/sam_slack_gateway_adapter
sam-webhook-gateway/src/sam_webhook_gateway Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -381,8 +381,7 @@ async def _handle_message_delete(self, op: MessageDeleteOp):
381381 log .debug ("[Queue:%s] Deleting message ts=%s" , self .task_id , op .ts )
382382 await self .client .chat_delete (channel = self .channel_id , ts = op .ts )
383383
384- # --- Polling Helper ---
385-
384+ # --- Polling Helper 1: Wait for file to be visible ---
386385 async def _wait_for_file_visible (self , file_id : str , timeout_seconds : int = 30 ):
387386 """
388387 Poll files.info until the 'shares' object appears, indicating the file
Original file line number Diff line number Diff line change 4141
4242log = logging .getLogger (__name__ )
4343
44+
4445info = {
4546 "class_name" : "WebhookGatewayComponent" ,
4647 "description" : (
@@ -151,10 +152,12 @@ async def dynamic_handler(request: FastAPIRequest) -> FastAPIResponse:
151152 user_identity .get ("id" , "unknown" ),
152153 )
153154
154- target_agent_name , a2a_parts , external_request_context = (
155- await self ._translate_external_input (
156- request , endpoint_config , user_identity
157- )
155+ (
156+ target_agent_name ,
157+ a2a_parts ,
158+ external_request_context ,
159+ ) = await self ._translate_external_input (
160+ request , endpoint_config , user_identity
158161 )
159162 log .debug (
160163 "%s Input translated. Target agent: %s, A2A Parts: %d" ,
@@ -192,9 +195,7 @@ async def dynamic_handler(request: FastAPIRequest) -> FastAPIResponse:
192195 )
193196 raise http_exc
194197 except ValueError as ve :
195- log .exception (
196- "%s Value error in handler: %s" , log_id_prefix , ve
197- )
198+ log .exception ("%s Value error in handler: %s" , log_id_prefix , ve )
198199 raise HTTPException (
199200 status_code = status .HTTP_400_BAD_REQUEST , detail = str (ve )
200201 )
You can’t perform that action at this time.
0 commit comments