Skip to content

Commit

Permalink
Python: Fixing error message handling. Fixes issue SeleniumHQ#1507
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Feb 1, 2016
1 parent 2f59645 commit ab99cb6
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 @@ -160,7 +160,7 @@ def check_response(self, response):
if exception_class == ErrorInResponseException:
raise exception_class(response, value)
raise exception_class(value)
if message != "" and 'message' in value:
if message == "" and 'message' in value:
message = value['message']

screen = None
Expand Down

0 comments on commit ab99cb6

Please sign in to comment.