mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot_merge: bot info fetch
`r0` is still used afterwards as the response object, so don't overwrite it when parsing the JSON body.
This commit is contained in:
parent
3a4fa494f8
commit
65c303a750
@ -74,9 +74,9 @@ class Project(models.Model):
|
|||||||
_logger.error("Failed to fetch merge bot information for project %s: %s", project.name, r0.text or r0.content)
|
_logger.error("Failed to fetch merge bot information for project %s: %s", project.name, r0.text or r0.content)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
r0 = r0.json()
|
r = r0.json()
|
||||||
project.github_name = r0['name'] or r0['login']
|
project.github_name = r['name'] or r['login']
|
||||||
if email := r0['email']:
|
if email := r['email']:
|
||||||
project.github_email = email
|
project.github_email = email
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user