From 8b150affdaa8f2be177c241524045ef0f7178b31 Mon Sep 17 00:00:00 2001 From: Brian Pepple Date: Mon, 27 Jun 2022 08:01:55 -0400 Subject: [PATCH] Remove unnecessary Raises --- darkseid/comicarchive.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/darkseid/comicarchive.py b/darkseid/comicarchive.py index 978dc78..9c7a9e3 100644 --- a/darkseid/comicarchive.py +++ b/darkseid/comicarchive.py @@ -61,7 +61,6 @@ def read_file(self, archive_file: str) -> bytes: return archive.read(archive_file) except rarfile.RarCannotExec as e: logger.error(f"Error reading rar archive [{e}]: {self.path} :: {archive_file}") - raise rarfile.RarCannotExec from e def remove_file(self) -> bool: """Rar files are read-only, so we return False.""" @@ -78,7 +77,6 @@ def get_filename_list(self) -> List[str]: return sorted(archive.namelist()) except rarfile.RarCannotExec as e: logger.error(f"Error reading rar archive [{e}]: {self.path}") - raise rarfile.RarCannotExec from e def copy_from_archive(self) -> bool: """Rar files are read-only, so we return False."""