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

pyautogui should propagate the ImageNotFoundException message upward #850

Open
SteveOnorato opened this issue Mar 29, 2024 · 1 comment
Open

Comments

@SteveOnorato
Copy link

SteveOnorato commented Mar 29, 2024

raise ImageNotFoundException # Raise PyAutoGUI's ImageNotFoundException.

discards the exception message from pyscreeze. I find the "(highest confidence =x)" part of the message super-useful, so perhaps you'd be willing to propagate it through with something like:
raise ImageNotFoundException(str(ex)) # Raise PyAutoGUI's ImageNotFoundException.

(The exceptions I care about are initially thrown here: https://github.com/asweigart/pyscreeze/blob/eeca245a135cf171c163b3691300138518efa64e/pyscreeze/__init__.py#L256C70-L256C91 )

@gtmsingh
Copy link

I have created this PR for resolving this issue: #887

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