Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on Linux if no clipboard mechanism is installed. #99

Closed
seapagan opened this issue Aug 30, 2024 · 0 comments
Closed

Crashes on Linux if no clipboard mechanism is installed. #99

seapagan opened this issue Aug 30, 2024 · 0 comments

Comments

@seapagan
Copy link
Contributor

On Ubuntu at least, there is often no terminal clipboard handler (ie 'xclip') installed by default. In this case, trying to copy the Response will crash with a traceback and lose any work.

Output is a full taceback followed by:

PyperclipException:
    Pyperclip could not find a copy/paste mechanism for your system.
    For more information, please visit https://pyperclip.readthedocs.io/en/latest/index.html#not-implemented-error

I have opened a PR #98 that catches this cleanly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants