aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/api.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-19 01:36:19 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-19 01:36:19 +0300
commitdd88c8103e13f108a0fed51a82221fdf60f6a188 (patch)
tree14c0038cd71f9e4a8208278b4e9b5f67e1a91c47 /vk/api.py
parentremove commented out code (diff)
downloadvk-scripts-dd88c8103e13f108a0fed51a82221fdf60f6a188.tar.gz
vk-scripts-dd88c8103e13f108a0fed51a82221fdf60f6a188.zip
add Pylint configuration & fix the warnings
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):