[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:
Mike Fährmann
2024-05-01 03:26:42 +02:00
parent 6db1837a6d
commit d11ec00908

View File

@@ -766,6 +766,7 @@ class BaseExtractor(Extractor):
Extractor.__init__(self, match)
if not self.category:
self._init_category()
self._cfgpath = ("extractor", self.category, self.subcategory)
def _init_category(self):
for index, group in enumerate(self.groups):