From 2b4d159ee3aa7518cb3de045929b73205415dc17 Mon Sep 17 00:00:00 2001 From: Matthew John Date: Thu, 29 Aug 2024 05:17:18 +0100 Subject: [PATCH] fix: Fix error thrown when git path cannot be found during module indexing Issue #535 --- terrareg/module_extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terrareg/module_extractor.py b/terrareg/module_extractor.py index aad9134a..c57cf9cd 100644 --- a/terrareg/module_extractor.py +++ b/terrareg/module_extractor.py @@ -676,7 +676,7 @@ def process_upload(self): # Ensure base directory exists if not os.path.isdir(self.module_directory): - raise PathDoesNotExistError(f"Base module could not be found (git path: {self._module_version.git_path})") + raise PathDoesNotExistError(f"Base module could not be found (git path: {self._module_version.module_provider.git_path})") # Generate the archive, unless the module has a git clone URL and # the config for deleting externally hosted artifacts is enabled.