Fix:Error handling deployment
This commit is contained in:
parent
7d6f40237b
commit
b591a1e144
2 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue