Skip to content

Commit

Permalink
fix typo src/PIL/ImageGrab.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
  • Loading branch information
nik012003 and nulano committed Jan 22, 2024
1 parent 5d5941f commit 2910cd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/ImageGrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def grabclipboard():
if p.returncode != 0:
allowed_errors = [

Check warning on line 162 in src/PIL/ImageGrab.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/ImageGrab.py#L160-L162

Added lines #L160 - L162 were not covered by tests
"Nothing is copied", # wl-paste, when the clipboard is empty
"not available", # wl-paste, when an image isn't avaiable
"cannot convert", # xclip, when an image isn't avaiable
"not available", # wl-paste, when an image isn't available
"cannot convert", # xclip, when an image isn't available
"There is no owner", # xclip, when the clipboard isn't initialized
]
if any(e in err for e in allowed_errors):
Expand Down

0 comments on commit 2910cd8

Please sign in to comment.