1. Mikhail Korobov
  2. vkontakte

Commits

ramusus  committed 8a36749

hide errors of parsing json

  • Participants
  • Parent commits 716f57b
  • Branches default

Comments (0)

Files changed (1)

File vkontakte/api.py

View file
                 'request_params': kwargs,
             })
 
-        data = json.loads(response)
+        data = json.loads(response, strict=False)
         if "error" in data:
             raise VKError(data["error"])
         return data['response']