Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
Revert "feat: retry PAXUIElementCopyAttributeValue on AXErrorFailure"
Browse files Browse the repository at this point in the history
This reverts commit ee12bee.
  • Loading branch information
daveenguyen committed Oct 3, 2019
1 parent b8e5c30 commit 6a2d7f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions atomacos/_macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
)
from atomacos import errors
from objc import callbackFor
from tenacity import retry, retry_if_exception_type, stop_after_attempt

PAXObserverCallback = callbackFor(AXObserverCreate)

Expand Down Expand Up @@ -92,11 +91,6 @@ def PAXObserverRemoveNotification(observer, element, notification):
errors.check_ax_error(error_code, error_messages)


@retry(
retry=retry_if_exception_type(errors.AXErrorFailure),
reraise=True,
stop=stop_after_attempt(5),
)
def PAXUIElementCopyAttributeValue(element, attribute):
"""
Returns the value of an accessibility object's attribute
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ requires = [
"pygetwindow<0.0.5",
"pyscreeze<0.1.20",
"pyautogui<0.9.42",
"tenacity",
"future",
]
classifiers = [
Expand Down

0 comments on commit 6a2d7f9

Please sign in to comment.