Skip to content

Commit b0442bd

Browse files
radarhereakx
authored andcommitted
Add message argument to ImagingError_ModeError call
1 parent 52c1f81 commit b0442bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_imaging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2073,7 +2073,7 @@ im_setalpha(ImagingObject *self, PyObject *args) {
20732073
/* attempt to modify the mode of an image in place */
20742074
Imaging im = self->image;
20752075
if (im->mode != IMAGING_MODE_RGB && im->mode != IMAGING_MODE_RGBX) {
2076-
return ImagingError_ModeError();
2076+
return ImagingError_ModeError(NULL);
20772077
}
20782078
im->mode = IMAGING_MODE_RGBA;
20792079
im->bands = 4;

0 commit comments

Comments
 (0)