logger can be unset at this step

This commit is contained in:
Romain Bignon 2014-03-26 09:44:13 +01:00
commit 273f0e683e

View file

@ -430,7 +430,7 @@ class StandardBrowser(mechanize.Browser):
return
def lowsslcheck(self, domain, hsh):
if self.INSECURE or self.logger.settings['ssl_insecure']:
if self.INSECURE or (self.logger is not None and self.logger.settings['ssl_insecure']):
return
certhash = self._certhash(domain)
if self.logger: