Skip to content

Commit

Permalink
[style] Avoid redefinition style checker warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnkn committed Oct 5, 2024
1 parent 08287e7 commit 26edfda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ratarmount.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

try:
from ratarmountcore.fusepy import fuse
except AttributeError as exception:
except AttributeError as importException:
traceback.print_exc()
print("[Error] Some internal exception occurred while trying to load the bundled fusepy:", exception)
print("[Error] Some internal exception occurred while trying to load the bundled fusepy:", importException)
sys.exit(1)
except (ImportError, OSError) as exception:
print("[Warning] Failed to load bundled fusepy. Will try to load system fusepy. Exception was:", exception)
except (ImportError, OSError) as importException:
print("[Warning] Failed to load bundled fusepy. Will try to load system fusepy. Exception was:", importException)
try:
import fuse # type: ignore
except (ImportError, OSError) as fuseException:
Expand Down
2 changes: 1 addition & 1 deletion tests/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ init-hook='import sys; sys.path.append("./core")'
# run arbitrary code.
extension-pkg-whitelist=indexed_gzip,indexed_bzip2,indexed_zstd,libarchive,libarchive.ffi,lzmaffi,rapidgzip,isal,
PySquashfsImage,PySquashfsImage.compressor,zstandard,lz4,deflate,pyminizip,fast_zip_decryption,
asyncssh
asyncssh,sshfs

# Specify a score threshold to be exceeded before program exits with error.
fail-under=10.0
Expand Down

0 comments on commit 26edfda

Please sign in to comment.