diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-19 01:36:19 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-19 01:36:19 +0300 |
commit | dd88c8103e13f108a0fed51a82221fdf60f6a188 (patch) | |
tree | 14c0038cd71f9e4a8208278b4e9b5f67e1a91c47 /vk/api.py | |
parent | remove commented out code (diff) | |
download | vk-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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |