diff --git a/src/qslib/qsconnection_async.py b/src/qslib/qsconnection_async.py index 8eb5507..0697a04 100644 --- a/src/qslib/qsconnection_async.py +++ b/src/qslib/qsconnection_async.py @@ -197,8 +197,10 @@ async def compile_eds(self, run_name: str) -> None: results = [r for r in expfiles if r["path"] == run_name] - if len(results) != 1: - raise ValueError + if len(results) == 0: + raise FileNotFoundError(run_name) + elif len(results) > 1: + raise ValueError(f"Multiple runs with name {run_name}: {results}") res = results[0] if "run" not in res: