Merge pull request #279 from bellingcat/telethon_tweaks

Fix calling extractor.cleanup (fixes telethon issue) + tidy up telethon extractor session file naming
This commit is contained in:
Patrick Robertson
2025-03-28 14:13:26 +04:00
committed by GitHub
11 changed files with 114 additions and 30 deletions

View File

@@ -274,6 +274,9 @@ class LazyBaseModule:
# finally, get the class instance
instance: BaseModule = getattr(sys.modules[sub_qualname], class_name)()
# save the instance for future easy loading
self._instance = instance
# set the name, display name and module factory
instance.name = self.name
instance.display_name = self.display_name
@@ -286,8 +289,6 @@ class LazyBaseModule:
instance.config_setup(config)
instance.setup()
# save the instance for future easy loading
self._instance = instance
return instance
def __repr__(self):