From dee30250a2845d4f53284d2100f6f1792ce494f1 Mon Sep 17 00:00:00 2001 From: Ross Cutler <46252169+rosscutler@users.noreply.github.com> Date: Wed, 4 Jun 2025 12:40:20 -0700 Subject: [PATCH] Stop on missing clip inputs --- src/master_script.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/master_script.py b/src/master_script.py index 0082509..70b28bf 100644 --- a/src/master_script.py +++ b/src/master_script.py @@ -681,21 +681,21 @@ async def main(cfg, test_method, args): assert os.path.exists(args.clips), f"No csv file containing clips in {args.clips}" elif cfg.has_option('RatingClips', 'RatingClipsConfigurations'): assert len(cfg['RatingClips']['RatingClipsConfigurations']) > 0, f"No cloud store for clips specified in config" - else: - assert True, "Neither clips file not cloud store provided for rating clips" + else: + raise ValueError("Neither clips file nor cloud store provided for rating clips") if args.gold_clips: assert os.path.exists(args.gold_clips), f"No csv file containing gold clips in {args.gold_clips}" elif cfg.has_option('GoldenSample', 'Path'): assert len(cfg['GoldenSample']['Path']) > 0, "No golden clips store found" - else: - assert True, "Neither gold clips file nor store configuration provided" + else: + raise ValueError("Neither gold clips file nor store configuration provided") if args.trapping_clips: assert os.path.exists(args.trapping_clips), f"No csv file containing trapping clips in {args.trapping_clips}" elif cfg.has_option('TrappingQuestions', 'Path'): assert len(cfg['TrappingQuestions']['Path']) > 0, "No golden clips store found" - else: - assert True, "Neither Trapping clips file nor store configuration provided" + else: + raise ValueError("Neither trapping clips file nor store configuration provided") asyncio.run(main(cfg, test_method, args))