fix when the DOMAIN is None

This commit is contained in:
Romain Bignon 2010-08-11 16:00:39 +02:00
commit 9b02bad7ed

View file

@ -124,7 +124,8 @@ class BaseBrowser(mechanize.Browser):
"""
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):
"""