diff --git a/src/PIL/ImageGrab.py b/src/PIL/ImageGrab.py index a3519fa21..66e2e8560 100644 --- a/src/PIL/ImageGrab.py +++ b/src/PIL/ImageGrab.py @@ -101,4 +101,4 @@ def grabclipboard(): return BmpImagePlugin.DibImageFile(io.BytesIO(data)) return data else: - raise IOError("ImageGrab.grabclipboard() is macOS and Windows only") + raise NotImplementedError("ImageGrab.grabclipboard() is macOS and Windows only")