Skip to content

Commit

Permalink
bug fix: in case of plugins is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Maplemx committed Nov 27, 2023
1 parent a8fedbc commit 11cd13a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/PluginManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def get_settings(self, keys_with_dots: str=None, default: str=None):

def get(self, module_name: str, plugin_name: str=None):
plugins = self.plugins_runtime_ctx.get_trace_back()
if plugins == None:
plugins = {}
if module_name not in plugins:
raise Exception(f"[Plugin Manager] Module '{ module_name }' is not in plugins runtime_ctx.")
if plugin_name != None:
Expand Down

0 comments on commit 11cd13a

Please sign in to comment.