Use NotImplementedError in ImageGrab if using Linux

Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
nulano 2019-12-28 12:01:19 +01:00 committed by Andrew Murray
parent 0bcc7be89b
commit 5253b0cd57

View File

@ -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")