Commit b428f527 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Vincent A

update: Set proxy and logger options for the Browser

parent a8d3374a
......@@ -474,11 +474,14 @@ class Repositories(object):
def load_browser(self):
from weboob.browser.browsers import Browser
from weboob.browser.profiles import Weboob as WeboobProfile
from weboob.tools.backend import env_proxies
class WeboobBrowser(Browser):
PROFILE = WeboobProfile(self.version)
if self.browser is None:
self.browser = WeboobBrowser()
self.browser = WeboobBrowser(
logger=getLogger('browser', parent=self.logger),
proxy=env_proxies())
def create_dir(self, name):
if not os.path.exists(name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment