Browse Source

fix #164; replace instead of ignoring decoding errors

0.9
Rossen Georgiev 7 years ago
parent
commit
4436419213
  1. 2
      steam/client/builtins/apps.py

2
steam/client/builtins/apps.py

@ -75,7 +75,7 @@ class Apps(object):
chunk = chunk[0].body chunk = chunk[0].body
for app in chunk.apps: for app in chunk.apps:
data['apps'][app.appid] = vdf.loads(app.buffer[:-1].decode('utf-8', 'ignore'))['appinfo'] data['apps'][app.appid] = vdf.loads(app.buffer[:-1].decode('utf-8', 'replace'))['appinfo']
for pkg in chunk.packages: for pkg in chunk.packages:
data['packages'][pkg.packageid] = vdf.binary_loads(pkg.buffer[4:])[str(pkg.packageid)] data['packages'][pkg.packageid] = vdf.binary_loads(pkg.buffer[4:])[str(pkg.packageid)]

Loading…
Cancel
Save