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

Catch edge-case exception in macOS clipboard #549

Merged

Conversation

tangledhelix
Copy link
Collaborator

If macOS clipboard contains non-text (e.g., an image) and user triggers smart_cut or smart_copy functions, TclError is thrown when TCL code "clipboard get" is run. Catch error and return from method if this happens.

Fixes #548

If macOS clipboard contains non-text (e.g., an image) and user
triggers smart_cut or smart_copy functions, TclError is thrown
when TCL code "clipboard get" is run. Catch error and return
from method if this happens.

Fixes DistributedProofreaders#548
@tangledhelix
Copy link
Collaborator Author

See #548 for how to reproduce the problem; can test on master branch and on this branch to compare whether you get an exception under the same conditions.

@windymilla windymilla merged commit f833069 into DistributedProofreaders:master Nov 28, 2024
1 check passed
@tangledhelix tangledhelix deleted the affirm_clipboard_fix branch November 28, 2024 17:34
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

Successfully merging this pull request may close these issues.

Exception thrown in affirm_clipboard_contents
3 participants