Fix bug in JSONTokenApi plugin

`Response#json` is a method, not a property, in the
requests library.

[directxman12: removed unnecessary calls to str]
This commit is contained in:
grz0 2015-08-22 14:09:58 +02:00 committed by Solly Ross
parent b7684e0914
commit 487db5f7c9
1 changed files with 2 additions and 1 deletions

View File

@ -79,4 +79,5 @@ class JSONTokenApi(BaseTokenAPI):
# should go
def process_result(self, resp):
return (resp.json['host'], resp.json['port'])
resp_json = resp.json()
return (resp_json['host'], resp_json['port'])