fix(lint): resolve remaining ruff errors and unblock MCP SSE test (#1)
Some checks failed
CI / lint (push) Failing after 2s
CI / typecheck (push) Failing after 1s
CI / test (push) Failing after 1s
CI / Secret scan (gitleaks) (push) Failing after 2s
CI / Security audit (bandit) (push) Failing after 2s

This commit is contained in:
Crypto Rug Munch 2026-07-02 23:18:40 +02:00
parent a7c30b12cd
commit 98eebe62bf
17 changed files with 60 additions and 87 deletions

View file

@ -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