Skip to content

Commit

Permalink
Corrected check
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 31, 2024
1 parent 5efa2ad commit d57b5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/ImageGrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def grabclipboard():
# xclip, when the clipboard isn't initialized
b"xclip: Error: There is no owner for the ",
]:
if err in silent_error:
if silent_error in err:
return None
msg = f"{args[0]} error"
if err:
Expand Down

0 comments on commit d57b5e8

Please sign in to comment.