[common] fix _cfgpath for BaseExtractor objects
After the changes in 0c17884673,
_cfgpath was mssing its 'category' value
since that hadn't been initialized yet.
This commit is contained in:
@@ -766,6 +766,7 @@ class BaseExtractor(Extractor):
|
|||||||
Extractor.__init__(self, match)
|
Extractor.__init__(self, match)
|
||||||
if not self.category:
|
if not self.category:
|
||||||
self._init_category()
|
self._init_category()
|
||||||
|
self._cfgpath = ("extractor", self.category, self.subcategory)
|
||||||
|
|
||||||
def _init_category(self):
|
def _init_category(self):
|
||||||
for index, group in enumerate(self.groups):
|
for index, group in enumerate(self.groups):
|
||||||
|
|||||||
Reference in New Issue
Block a user