Set arguments of page_to_hit facultative

This commit is contained in:
Gregory Soutade 2015-01-13 18:54:57 +01:00
parent 9d3f7c05a4
commit 1d9bf71b4b
1 changed files with 0 additions and 2 deletions

View File

@ -58,12 +58,10 @@ class IWLAPreAnalysisPageToHit(IPlugin):
def load(self):
# Page to hit
self.ph_regexps = self.iwla.getConfValue('page_to_hit_conf', [])
if not self.ph_regexps: return False
self.ph_regexps = map(lambda(r): re.compile(r), self.ph_regexps)
# Hit to page
self.hp_regexps = self.iwla.getConfValue('hit_to_page_conf', [])
if not self.hp_regexps: return False
self.hp_regexps = map(lambda(r): re.compile(r), self.hp_regexps)
return True