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

Fix locate_on_screen #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix locate_on_screen #132

wants to merge 1 commit into from

Conversation

Giovaaanniii
Copy link
Contributor

during the training process, it was explained to me that if I change the functionality of the master, I need to create branches separate from it, so I created a new pull_request

@@ -334,7 +334,7 @@ def locate_on_screen(ctx: Context, img_path: str):
"""
try:
coord = pyautogui.locateOnScreen(img_path, confidence=0.5)
except pyautogui.ImageNotFoundException:
except (pyautogui.ImageNotFoundException, OSError, TestException):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

С OSError надо разобраться, но откуда тут взялся TestException?

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.

2 participants