mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Use NotImplementedError in ImageGrab if using Linux
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
0bcc7be89b
commit
5253b0cd57
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user