From 28b66ba87216e27056c7c0d9a2588481e655f97f Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:32:44 -0600 Subject: [PATCH] Restore auto fixed deletion --- dojo/tools/factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/tools/factory.py b/dojo/tools/factory.py index 04930321c50..073b2f7ea37 100644 --- a/dojo/tools/factory.py +++ b/dojo/tools/factory.py @@ -117,7 +117,7 @@ def requires_tool_type(scan_type): package_dir = str(Path(__file__).resolve().parent) for module_name in os.listdir(package_dir): # check if it's dir - if Path(os.path.join(package_dir, module_name)).is_dir(): + if Path(os.path.join(package_dir, module_name)).is_dir(): # noqa: PTH208 try: # check if it's a Python module if find_spec(f"dojo.tools.{module_name}.parser"):