Skip to content
Snippets Groups Projects
Commit c47b1f7d authored by fw-bot's avatar fw-bot Committed by Thibault Delavallée
Browse files

[FIX] website_slides: Add fetch timeout


This makes you actually able to install the module with demo data and unplugged from network. Otherwise, it's impossible.

closes odoo/odoo#37903

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 41c434cd
No related branches found
No related tags found
No related merge requests found
......@@ -660,7 +660,7 @@ class Slide(models.Model):
def _fetch_data(self, base_url, params, content_type=False):
result = {'values': dict()}
try:
response = requests.get(base_url, params=params)
response = requests.get(base_url, timeout=3, params=params)
response.raise_for_status()
if content_type == 'json':
result['values'] = response.json()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment