Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Plugins: debug line always printed in plugin load

Richard Beales78a6b44b2131
diff --git a/autogpt/plugins.py b/autogpt/plugins.py
index abc7044664..8aaa35e915 100644
--- a/autogpt/plugins.py
+++ b/autogpt/plugins.py
@@ -36,7 +36,7 @@ def inspect_zip_for_modules(zip_path: str, debug: bool = False) -> list[str]:
if debug:
print(f"Found module '{name}' in the zipfile at: {name}")
result.append(name)
- if debug:
+ if debug and len(result) == 0:
print(f"Module '__init__.py' not found in the zipfile @ {zip_path}.")
return result