diff --git a/src/modules_core/service/module_service.py b/src/modules_core/service/module_service.py index abb1f76..0cc4241 100644 --- a/src/modules_core/service/module_service.py +++ b/src/modules_core/service/module_service.py @@ -30,7 +30,6 @@ class ModuleService(ModuleServiceABC): self._logger.debug(__name__, 'Start on_ready modules') modules = self._modules.where(lambda m: issubclass(m, OnReadyABC)) for module_type in modules: - module_type = module_type module: OnReadyABC = self._services.get_service(module_type) await module.on_ready() self._logger.debug(__name__, 'Stopped on_ready modules') @@ -46,7 +45,6 @@ class ModuleService(ModuleServiceABC): self._logger.debug(__name__, 'Start on_message modules') modules = self._modules.where(lambda m: issubclass(m, OnMessageABC)) for module_type in modules: - module_type = module_type module: OnMessageABC = self._services.get_service(module_type) await module.on_message(message) self._logger.debug(__name__, f'Stopped on_message modules')