Commit 5bc147ad authored by Martin Morlot's avatar Martin Morlot Committed by Vincent A

[bp] Change the open function instead of location as needed

parent 687184c9
......@@ -200,9 +200,9 @@ class BPBrowser(LoginBrowser, StatesMixin):
super(BPBrowser, self).deinit()
def location(self, url, **kwargs):
def open(self, *args, **kwargs):
return super(BPBrowser, self).location(url, **kwargs)
return super(BPBrowser, self).open(*args, **kwargs)
except ServerError as err:
if "/../" not in err.response.url:
......@@ -211,7 +211,7 @@ class BPBrowser(LoginBrowser, StatesMixin):
self.logger.debug('site has "/../" in their url, fixing url manually')
parts = list(urlsplit(err.response.url))
parts[2] = os.path.abspath(parts[2])
return self.location(urlunsplit(parts))
def do_login(self):
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