Skip to content

Commit

Permalink
Handle None as a value. Fixes #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:

This comment has been minimized.

Copy link
@isaulv

isaulv Jan 19, 2016

Contributor

This could be simplified to if not value: since we expect either a string or None.

value = response['value']
if isinstance(value, basestring):
if exception_class == ErrorInResponseException:
Expand Down

0 comments on commit 6b4a1d3

Please sign in to comment.