diff --git a/src/npg_irods/ont.py b/src/npg_irods/ont.py index 33d60dd..3795f3e 100644 --- a/src/npg_irods/ont.py +++ b/src/npg_irods/ont.py @@ -451,7 +451,7 @@ def find_run_collections( args = [] if zone is not None: args.extend(["-z", shlex.quote(zone)]) - args.append("%s/%s") + args.append("%s") query = ( "select COLL_NAME where " @@ -461,7 +461,14 @@ def find_run_collections( f"COLL_CREATE_TIME <= '{int(until.timestamp()) :>011}'" ) - return [Collection(p) for p in iquest(*args, query).splitlines()] + # iquest mixes logging and data in its output + ignore = f"Zone is {zone}" if zone is not None else "Zone is" + + return [ + Collection(p) + for p in iquest(*args, query).splitlines() + if not p.strip().startswith(ignore) + ] def tag_index_from_id(tag_identifier: str) -> int: