fix(lint): resolve remaining ruff errors and unblock MCP SSE test (#1)
This commit is contained in:
parent
a7c30b12cd
commit
98eebe62bf
17 changed files with 60 additions and 87 deletions
|
|
@ -39,7 +39,7 @@ class JobQueue:
|
|||
try:
|
||||
self._redis = await aioredis.from_url(self.redis_url, socket_timeout=3)
|
||||
await self._redis.ping()
|
||||
except:
|
||||
except (aioredis.RedisError, OSError, TimeoutError):
|
||||
self._redis = None # Fallback to local storage
|
||||
return self._redis
|
||||
|
||||
|
|
@ -121,5 +121,5 @@ class JobQueue:
|
|||
"Content-Type": "application/json",
|
||||
},
|
||||
)
|
||||
except:
|
||||
except (httpx.RequestError, OSError):
|
||||
pass # Webhook fire is best-effort
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue