aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'vk/api.py')
-rw-r--r--vk/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vk/api.py b/vk/api.py
index 6b251d0..bf59636 100644
--- a/vk/api.py
+++ b/vk/api.py
@@ -50,10 +50,10 @@ class API:
with urllib.request.urlopen(url) as request:
response = json.loads(request.read().decode())
if 'response' not in response:
- raise vk.error.InvalidResponseError(response)
+ raise vk.error.InvalidAPIResponseError(response)
return response['response']
except URLError:
- raise vk.error.ConnectionError()
+ raise vk.error.APIConnectionError()
@staticmethod
def _format_param_values(xs):