Commit 17e679f3 authored by Romain Bignon's avatar Romain Bignon

fix getting website if BROWSER is not a BaseBrowser

parent 5d64e26e
......@@ -67,7 +67,7 @@ class Module(object):
def website(self):
if self.klass.BROWSER and self.klass.BROWSER.DOMAIN:
if self.klass.BROWSER and hasattr(self.klass.BROWSER, 'DOMAIN') and self.klass.BROWSER.DOMAIN:
return '%s://%s' % (self.klass.BROWSER.PROTOCOL, self.klass.BROWSER.DOMAIN)
return None
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