mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Expanded error message strings
This commit is contained in:
parent
e7470ed789
commit
39cbd4f0f1
|
@ -163,11 +163,11 @@ def grabclipboard():
|
||||||
# wl-paste, when the clipboard is empty
|
# wl-paste, when the clipboard is empty
|
||||||
b"Nothing is copied",
|
b"Nothing is copied",
|
||||||
# wl-paste/debian xclip, when an image isn't available
|
# wl-paste/debian xclip, when an image isn't available
|
||||||
b"not available",
|
b" not available",
|
||||||
# xclip, when an image isn't available
|
# xclip, when an image isn't available
|
||||||
b"cannot convert",
|
b"cannot convert ",
|
||||||
# xclip, when the clipboard isn't initialized
|
# xclip, when the clipboard isn't initialized
|
||||||
b"There is no owner",
|
b"xclip: Error: There is no owner for the ",
|
||||||
]:
|
]:
|
||||||
if err in silent_error:
|
if err in silent_error:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user