mirror of
https://github.com/botlabsDev/npkpy.git
synced 2025-12-10 06:54:37 +01:00
fixed 'raise from' pylint exception(W0707)
This commit is contained in:
parent
72fe120930
commit
fcd0db7820
1 changed files with 2 additions and 2 deletions
|
|
@ -92,9 +92,9 @@ class Npk(FileBasic):
|
|||
raise NPKError(f"File maybe corrupted. Please download again. File: {self.file.absolute()}")
|
||||
try:
|
||||
return CNT_HANDLER[cnt_id](data, offset)
|
||||
except KeyError:
|
||||
except KeyError as e:
|
||||
raise NPKIdError(f"Failed with cnt id: {cnt_id}\n"
|
||||
f"New cnt id discovered in file: {self.file.absolute()}")
|
||||
f"New cnt id discovered in file: {self.file.absolute()}") from e
|
||||
|
||||
|
||||
def _check_magic_bytes(self, error_msg):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue