Skip to content

Commit

Permalink
pyupgraded code for Python >= 3.11
Browse files Browse the repository at this point in the history
Change-Id: Ide76ad3b6e7aca1f24a060681cdbafaa926a6a87
  • Loading branch information
spt29 committed Dec 2, 2024
1 parent d1d4da7 commit 8bf11ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmk/base/automation_helper/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async def timeout_middleware(
timeout = APPLICATION_MAX_REQUEST_TIMEOUT
try:
return await asyncio.wait_for(call_next(request), timeout=float(timeout))
except asyncio.TimeoutError:
except TimeoutError:
resp = AutomationResponse(
exit_code=AutomationExitCode.TIMEOUT,
output=f"Timed out after {timeout} seconds",
Expand Down

0 comments on commit 8bf11ad

Please sign in to comment.