Skip to content

Commit d8702ee

Browse files
validate change commit
1 parent 9094bb2 commit d8702ee

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

sam-slack-gateway-adapter/src/sam_slack_gateway_adapter/message_queue.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

sam-webhook-gateway/src/sam_webhook_gateway/component.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
log = logging.getLogger(__name__)
4343

44+
4445
info = {
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
)

0 commit comments

Comments
 (0)