Skip to content

Commit

Permalink
Remove unnecessary Raises
Browse files Browse the repository at this point in the history
  • Loading branch information
bpepple committed Jun 27, 2022
1 parent d219a47 commit 8b150af
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions darkseid/comicarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand All @@ -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."""
Expand Down

0 comments on commit 8b150af

Please sign in to comment.