From b07f059f6adadf907bb57e15fb07014df9ec6387 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Tue, 13 Oct 2015 14:16:35 +0300 Subject: [PATCH] fix #4; method failing when format=vdf --- steam/webapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam/webapi.py b/steam/webapi.py index c60183c..2d673ea 100644 --- a/steam/webapi.py +++ b/steam/webapi.py @@ -52,7 +52,7 @@ def webapi_request(path, method='GET', caller=None, params={}): return lxml.etree.parse(resp.raw) elif onetime['format'] == 'vdf': import vdf - return vdf.load(resp.raw) + return vdf.loads(resp.text) class WebAPI(object):