Skip to content

Commit

Permalink
pass path to err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
FayazRahman committed Feb 28, 2024
1 parent e568b2e commit 415206e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeplake/core/compression.py
Expand Up @@ -500,7 +500,7 @@ def get_compression(header=None, path=None):
accept = Image.OPEN[fmt][1]
if accept and accept(header):
return fmt.lower()
raise SampleDecompressionError()
raise SampleDecompressionError(path)

Check warning on line 503 in deeplake/core/compression.py

View check run for this annotation

Codecov / codecov/patch

deeplake/core/compression.py#L503

Added line #L503 was not covered by tests


def _verify_png(buf):
Expand Down

0 comments on commit 415206e

Please sign in to comment.