diff --git a/cubi_tk/irods_common.py b/cubi_tk/irods_common.py index 852ccd9..9348b6c 100644 --- a/cubi_tk/irods_common.py +++ b/cubi_tk/irods_common.py @@ -261,7 +261,7 @@ def get(self, force_overwrite: bool = False): file_log.set_description_str( f"File [{n + 1}/{len(self.__jobs)}]: {Path(job.path_local).name}" ) - if os.path.exists(job.path_local) and not force_overwrite: + if os.path.exists(job.path_local) and not force_overwrite: # pragma: no cover logger.info( f"{Path(job.path_local).name} already exists. Skipping, use force_overwrite to re-download." ) @@ -320,7 +320,7 @@ def retrieve_irods_data_objects(self, irods_path: str) -> Dict[str, List[iRODSDa irods_obj_dict = self.parse_irods_collection(irods_data_objs) return irods_obj_dict - except Exception as e: + except Exception as e: # pragma: no cover logger.error("Failed to retrieve iRODS path: %s", self.get_irods_error(e)) raise