openatx / uiautomator2

Android Uiautomator2 Python Wrapper
MIT License
6.18k stars 1.35k forks source link

core.py代码里面关于报错检查的bug #1001

Closed fuhao666 closed 3 days ago

fuhao666 commented 1 week ago

image 这里没有in message,会导致下面的检测完全不运行吧。 if "uiautomator.UiObjectNotFoundException" in message: raise UiObjectNotFoundError(code, message, params) if "java.lang.StackOverflowError" in message: raise RPCStackOverflowError(f"StackOverflowError: {message}", params, stacktrace[:1000] + "..." + stacktrace[-1000:])

codeskyblue commented 3 days ago

thanks @fuhao666