Skip to content

Commit

Permalink
fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SmithSamuelM authored and kentbull committed Sep 3, 2024
1 parent 3fa57c4 commit a8a4b47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_kering.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,11 @@ def snuff(raw, size=0):
"""
if len(raw) < SNUFFSIZE:
raise ShortageError(f"Need more raw bytes to smell full version string.")
raise kering.ShortageError(f"Need more raw bytes to smell full version string.")

match = Rever.search(raw) # Rever regex takes bytes/bytearray not str
if not match or match.start() > MAXVFOFFSET:
raise VersionError(f"Invalid version string from smelled raw = "
raise kering.VersionError(f"Invalid version string from smelled raw = "
f"{raw[: SNUFFSIZE]}.")

return snatch(match, size=size)
Expand Down

0 comments on commit a8a4b47

Please sign in to comment.