Skip to content

Commit

Permalink
Address TypeError: string indices must be integers
Browse files Browse the repository at this point in the history
This should address the error documented here: #1497

Signed-off-by: AutomatedTester <[email protected]>
  • Loading branch information
nikolas authored and AutomatedTester committed Jan 28, 2016
1 parent 069eb4e commit 7130de4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py/selenium/webdriver/remote/errorhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ def check_response(self, response):
status = value.get('error', None)
if status is None:
status = value["status"]
message = value["value"]["message"]
try:
message = value["value"]["message"]
except TypeError:
message = None
else:
message = value.get('message', None)
except ValueError:
Expand Down

0 comments on commit 7130de4

Please sign in to comment.