Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Commit

Permalink
Handle None as a value. Fixes SeleniumHQ#1500
Browse files Browse the repository at this point in the history
This is due to trying to sniff packets between the remote end and
the client causing issue.
  • Loading branch information
AutomatedTester committed Jan 19, 2016
1 parent 715148b commit 6b4a1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/errorhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def check_response(self, response):
exception_class = MoveTargetOutOfBoundsException
else:
exception_class = WebDriverException
if value == '':
if value == '' or value is None:
value = response['value']
if isinstance(value, basestring):
if exception_class == ErrorInResponseException:
Expand Down

0 comments on commit 6b4a1d3

Please sign in to comment.