[FIX] estimate-workload: wrong warning message
Previous syntax does not replace correctly the markers in the string. Using an f-string fix this. Before: 2024-02-06 10:47:02.303 | WARNING | odoo_openupgrade_wizard.tools.tools_odoo_module:get_odoo_apps_url:359 - Error when trying to get %s: %s After: 2024-02-07 10:51:11.964 | WARNING | odoo_openupgrade_wizard.tools.tools_odoo_module:get_odoo_apps_url:356 - Error when trying to get https://apps.odoo.com/apps/modules/12.0/partner_contact_address/: Exceeded 30 redirects.
This commit is contained in:
parent
a878df2915
commit
2b0e359d4e
|
|
@ -353,11 +353,7 @@ class OdooModule(object):
|
||||||
try:
|
try:
|
||||||
response = requests.get(url)
|
response = requests.get(url)
|
||||||
except requests.exceptions.RequestException as err:
|
except requests.exceptions.RequestException as err:
|
||||||
logger.warning(
|
logger.warning(f"Error when trying to get {url}: {err}")
|
||||||
"Error when trying to get %s: %s",
|
|
||||||
url,
|
|
||||||
err,
|
|
||||||
)
|
|
||||||
return False
|
return False
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return url
|
return url
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user