fixed using wrong get signature

This commit is contained in:
Toorero 2021-11-01 00:08:25 +01:00
parent c4f276b7ae
commit 08565b22ad

View file

@ -28,7 +28,7 @@ class KitIpdCrawlerSection(HttpCrawlerSection):
return target
def link_regex(self) -> Pattern[AnyStr]:
regex = self.s.get("link_regex", default=".*/[^/]*\.(?:pdf|zip|c|java)")
regex = self.s.get("link_regex", ".*/[^/]*\.(?:pdf|zip|c|java)")
return re.compile(regex)