Fix:Error handling deployment

This commit is contained in:
Mathis 2026-07-12 16:44:47 +02:00
parent 7d6f40237b
commit b591a1e144
2 changed files with 11 additions and 2 deletions

View file

@ -437,7 +437,16 @@ class BugReport(commands.Cog):
async def handle_deployment_complete(self, request):
"""Notifie les demandeurs dont la fonctionnalité a été intégrée et attend le prochain déploiement."""
try:
await request.json()
try:
await request.json()
except Exception:
try:
raw_body = await request.text()
if raw_body and raw_body.strip():
json.loads(raw_body)
except Exception:
pass
for issue_iid, issue_data in list(self.issue_data.items()):
if not issue_data.get("pending_deployment_notification"):
continue