Navigation Menu

Skip to content

Commit

Permalink
res["response"].errors can apparently be None
Browse files Browse the repository at this point in the history
  • Loading branch information
knatten committed Nov 24, 2015
1 parent dffdce4 commit 85e123d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msg_parser.py
Expand Up @@ -51,7 +51,7 @@ def sendRequest(self, interop, requestName, arguments, timeout=2):

if res['name'] == "Hello":
logging.getLogger(__name__).info("Got Hello response")
if (res["response"] != None and len(res["response"].errors) > 0):
if (res["response"] != None and res["response"].errors != None and len(res["response"].errors) > 0):
logging.getLogger(__name__).info("Errors in response: '%s'", str(res["response"].errors))
return res["response"]

Expand Down

0 comments on commit 85e123d

Please sign in to comment.