From 4d6e7642ef970fb48712387ca7d37645097f1fdb Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 10 Apr 2024 08:52:52 -0700 Subject: [PATCH] not a dict --- pv2/importer/operation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index a4a9fbd..278b9e4 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -788,11 +788,13 @@ class GitImport(Import): if not metafile_to_use: #print('Source: There was no metadata file found. Skipping import attempt.') print('Source: There was no metadata file found. Import may not work correctly.') - metafile_to_use = '' + #metafile_to_use = '' #self.perform_cleanup([source_git_repo_path, dest_git_repo_path]) #return False - sources_dict = self.parse_metadata_file(metafile_to_use) + sources_dict = {} + if metafile_to_use: + sources_dict = self.parse_metadata_file(metafile_to_use) # We need to check if there is a SPECS directory and make a SOURCES # directory if it doesn't exist