Skip to content

Commit 7130de4

Browse files
nikolasAutomatedTester
authored andcommitted
Address TypeError: string indices must be integers
This should address the error documented here: #1497 Signed-off-by: AutomatedTester <[email protected]>
1 parent 069eb4e commit 7130de4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

py/selenium/webdriver/remote/errorhandler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ def check_response(self, response):
104104
status = value.get('error', None)
105105
if status is None:
106106
status = value["status"]
107-
message = value["value"]["message"]
107+
try:
108+
message = value["value"]["message"]
109+
except TypeError:
110+
message = None
108111
else:
109112
message = value.get('message', None)
110113
except ValueError:

0 commit comments

Comments
 (0)