fix when the DOMAIN is None
This commit is contained in:
parent
1a4189afa1
commit
9b02bad7ed
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,8 @@ class BaseBrowser(mechanize.Browser):
|
||||||
"""
|
"""
|
||||||
Go to the home page.
|
Go to the home page.
|
||||||
"""
|
"""
|
||||||
self.location('%s://%s' % (self.PROTOCOL, self.DOMAIN))
|
if self.DOMAIN is not None:
|
||||||
|
self.location('%s://%s' % (self.PROTOCOL, self.DOMAIN))
|
||||||
|
|
||||||
def login(self):
|
def login(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue