Replace TypeError with KeyError in remote webdriver error handler code
Update getting message to handle errors better.
@@ -108,10 +108,7 @@ class ErrorHandler(object):
message = value["value"]
if not isinstance(message, basestring):
value = message
- try:
- message = message['message']
- except TypeError:
- message = None
+ message = message.get('message')
else:
message = value.get('message', None)
except ValueError:
