Skip to content

Raise error from stderr of Linux ImageGrab.grabclipboard() command#7112

Merged
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:grabclipboard_stderr
May 3, 2023
Merged

Raise error from stderr of Linux ImageGrab.grabclipboard() command#7112
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:grabclipboard_stderr

Conversation

@radarhere
Copy link
Member

Resolves #7110

If the command used in ImageGrab.grabclipboard() on Linux (xclip or wl-paste) returns stderr content, raise that as a ChildProcessError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImageGrab.grabclipboard() prints error instead of raising it on Linux X11 with text in the clipboard

2 participants