Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ohyeah521 committed Apr 24, 2024
1 parent 72e29ad commit af24fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion androguard/core/dex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def __init__(self, size, buff, cm):
self.dex_version = 35 # assume a common version...

if zlib.adler32(read_at(buff, self.offset + 12)) != self.checksum:
raise ValueError("Wrong Adler32 checksum for DEX file!")
logger.warning("Wrong Adler32 checksum for DEX file!")

if self.file_size != buff.raw.getbuffer().nbytes:
# Maybe raise an error here too...
Expand Down

0 comments on commit af24fb4

Please sign in to comment.