Skip to content

Commit d57b5e8

Browse files
committed
Corrected check
1 parent 5efa2ad commit d57b5e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PIL/ImageGrab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def grabclipboard():
173173
# xclip, when the clipboard isn't initialized
174174
b"xclip: Error: There is no owner for the ",
175175
]:
176-
if err in silent_error:
176+
if silent_error in err:
177177
return None
178178
msg = f"{args[0]} error"
179179
if err:

0 commit comments

Comments
 (0)