From d4e624fadeaa3b49e0a51437604e6d07fe46f2cb Mon Sep 17 00:00:00 2001 From: Nicolai-vKuegelgen Date: Mon, 11 Mar 2024 16:25:10 +0100 Subject: [PATCH] coverage --- cubi_tk/irods_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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