From d9e2f2b370d04aae78c84cb7cedfc028fd5a2d25 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sun, 10 Mar 2024 21:38:37 -0700 Subject: [PATCH] importer: make lack of meta message more informative --- pv2/importer/operation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index ada2902..29b9144 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -780,12 +780,13 @@ class GitImport(Import): metafile_to_use = sources_file else: #raise err.GenericError('sources or metadata file NOT found') - print('WARNING: There was no sources or metadata found. Making blank file.') + # There isn't a reason to make a blank file right now. + print('WARNING: There was no sources or metadata found.') with open(metadata_file, 'w+') as metadata_handle: pass if not metafile_to_use: - print('There was no metadata file found. Skipping.') + print('Source: There was no metadata file found. Skipping import attempt.') return False sources_dict = self.parse_metadata_file(metafile_to_use)