From 6f6f3a44e63213a9d812fc480ac37a537efa5a05 Mon Sep 17 00:00:00 2001 From: David Monjoie <dmo@odoo.com> Date: Mon, 9 Oct 2017 08:19:15 +0200 Subject: [PATCH] [FIX] iap: remove urllib3 dependency Since it's not compatible with Python 2. --- addons/iap/models/iap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/iap/models/iap.py b/addons/iap/models/iap.py index 87394fd053b1..9739a560dd1c 100644 --- a/addons/iap/models/iap.py +++ b/addons/iap/models/iap.py @@ -6,7 +6,6 @@ import uuid import werkzeug.urls import requests -from requests.packages import urllib3 from odoo import api, fields, models, exceptions @@ -64,7 +63,7 @@ def jsonrpc(url, method='call', params=None): e.data = response['error']['data'] raise e return response.get('result') - except (ValueError, requests.exceptions.ConnectionError, requests.exceptions.MissingSchema, urllib3.exceptions.MaxRetryError) as e: + except (ValueError, requests.exceptions.ConnectionError, requests.exceptions.MissingSchema) as e: raise exceptions.AccessError('The url that this service requested returned an error. Please contact the author the app. The url it tried to contact was ' + url) #---------------------------------------------------------- -- GitLab