We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 386ecc3 commit 6b89375Copy full SHA for 6b89375
py/selenium/webdriver/remote/websocket_connection.py
@@ -64,10 +64,13 @@ def execute(self, command):
64
self._wait_until(lambda: current_id in self._messages)
65
response = self._messages.pop(current_id)
66
67
- error = response["error"]
68
- if "message" in response:
69
- error_msg = f"{error}: {response['message']}"
70
- raise Exception(error_msg)
+ if "error" in response:
+ error = response["error"]
+ if "message" in response:
+ error_msg = f"{error}: {response['message']}"
71
+ raise Exception(error_msg)
72
+ else:
73
+ raise Exception(error)
74
else:
75
result = response["result"]
76
return self._deserialize_result(result, command)
0 commit comments