Skip to content

Commit

Permalink
Merge pull request #2785 from activeloopai/fy_upd_err
Browse files Browse the repository at this point in the history
Include path in sample decompression error
  • Loading branch information
nvoxland-al committed Mar 7, 2024
2 parents f822868 + 415206e commit 1397d3a
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)


def _verify_png(buf):
Expand Down

0 comments on commit 1397d3a

Please sign in to comment.