Skip to content

Commit

Permalink
fix DeadSystemRuntimeException not in message, close #1001
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Jul 8, 2024
1 parent 9b44181 commit 7ba4852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uiautomator2/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _jsonrpc_call(dev: adbutils.AdbDevice, method: str, params: Any, timeout: fl
if "android.os.DeadObjectException" in message:
# https://developer.android.com/reference/android/os/DeadObjectException
raise UiAutomationNotConnectedError("android.os.DeadObjectException")
if "android.os.DeadSystemRuntimeException":
if "android.os.DeadSystemRuntimeException" in message:
raise UiAutomationNotConnectedError("android.os.DeadSystemRuntimeException")
if "uiautomator.UiObjectNotFoundException" in message:
raise UiObjectNotFoundError(code, message, params)
Expand Down

0 comments on commit 7ba4852

Please sign in to comment.