From 188231fec7b57eb14189ea29261c95e0e80e4b60 Mon Sep 17 00:00:00 2001 From: Davee Nguyen Date: Sat, 23 Mar 2019 11:47:02 -0700 Subject: [PATCH] fix(a11y): remove check for none in systemwide AXUIElementCreateSystemWide is not documented to return None --- atomacos/a11y.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/atomacos/a11y.py b/atomacos/a11y.py index f965368..bca6aea 100644 --- a/atomacos/a11y.py +++ b/atomacos/a11y.py @@ -182,10 +182,6 @@ def systemwide(cls): accessibility object. """ app_ref = AXUIElementCreateSystemWide() - - if app_ref is None: - raise AXErrorUnsupported("Error getting a11y object") - return cls(ref=app_ref) @classmethod