We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c710a8d commit 37e23a8Copy full SHA for 37e23a8
1 file changed
adafruit_imageload/pnm/__init__.py
@@ -101,4 +101,4 @@ def load(file, header, *, bitmap=None, palette=None):
101
102
return ppm_binary.load(file, pnm_header[0], pnm_header[1], bitmap=bitmap, palette=palette)
103
104
- raise RuntimeError("Unsupported image format")
+ raise RuntimeError("Unsupported image format {}".format(magic_number))
0 commit comments