use warning color for failed collations

This commit is contained in:
xenofem 2024-04-15 21:15:39 -04:00
parent dd6f3ff02c
commit 0dcfd1d84a

View file

@ -444,9 +444,9 @@ def collate(args):
work_staging_dir.rmdir() work_staging_dir.rmdir()
if not collation_result: if not collation_result:
print(f'Unable to deduce file structure for {work_id}, skipping') warn(f'Unable to deduce file structure for {work_id}, skipping')
elif collator.index == 0: elif collator.index == 0:
print(f'No files found for {work_id}, skipping') warn(f'No files found for {work_id}, skipping')
any_warnings = True any_warnings = True