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))