Skip to content

Commit

Permalink
Revert previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
btlorch committed Nov 19, 2023
1 parent c2f1f2c commit 925a27c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/jpeglib/_bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ def read_jpeg_spatial(
if path is None:
path = srcfile

flag_mask = cls.flags_to_mask(flags)
status = cls.get().read_jpeg_spatial(
cls.cstr(srcfile),
spatial,
Expand All @@ -164,9 +163,9 @@ def read_jpeg_spatial(
out_color_space,
dither_mode,
dct_method,
flag_mask
cls.flags_to_mask(flags)
)

if status == 0:
raise IOError(f"reading of {path} spatial failed")

Expand Down

0 comments on commit 925a27c

Please sign in to comment.