Skip to content

Commit

Permalink
fix comments, pylint and ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Miryam-Schwartz committed Dec 19, 2024
1 parent e501ef1 commit e5827e5
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def extract_files(
# Read some bytes to verify the file is not corrupted
inner_tar_stream.peek(1) # Peek at the first byte
except Exception as e:
log.Logger.info(f"Error reading inner tar file {inner_tar_name}: {e}")
log.Logger.info("Error reading inner tar file %s: %s", inner_tar_name, e)
continue # Skip this file if it's invalid

inner_file_open_mode = (
Expand All @@ -157,10 +157,8 @@ def extract_files(


except EOFError as e:
log.logger.info(f"EOFError in inner tar {inner_tar_name}: {e}")
continue # Handle the EOFError and continue with the next file


log.LOGGER.info("EOFError in inner tar %s: %s", inner_tar_name, e)
continue
# If we got to this point, we might have a simple tar, try to extract from it
return self._get_files_from_tar(
outer_tar, files_to_extract, directories_to_extract, destination
Expand Down

0 comments on commit e5827e5

Please sign in to comment.