Skip to content

Commit

Permalink
update message
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed May 13, 2024
1 parent 9e642a1 commit 0a66b07
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 @@ -129,7 +129,7 @@ def _jsonrpc_call(dev: adbutils.AdbDevice, method: str, params: Any, timeout: fl
if isinstance(data, dict) and "error" in data:
logger.debug("jsonrpc error: %s", data)
code = data['error'].get('code')
message = data['error'].get('message')
message = data['error'].get('message', '')
stacktrace = data['error'].get('data')
if "UiAutomation not connected" in r.text:
raise UiAutomationNotConnectedError("UiAutomation not connected")
Expand Down

0 comments on commit 0a66b07

Please sign in to comment.