aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-06-19 01:51:07 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-06-19 01:51:07 +0300
commit422c38fa4ecc7d744e414096f89c01cbf2b130b2 (patch)
treee9d665a36de0a854dd5f893f25df8a039180e3d9 /vk
parentadd Pylint configuration & fix the warnings (diff)
downloadvk-scripts-422c38fa4ecc7d744e414096f89c01cbf2b130b2.tar.gz
vk-scripts-422c38fa4ecc7d744e414096f89c01cbf2b130b2.zip
bugfix
Diffstat (limited to 'vk')
-rw-r--r--vk/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vk/api.py b/vk/api.py
index bf59636..d5dfa1c 100644
--- a/vk/api.py
+++ b/vk/api.py
@@ -52,7 +52,7 @@ class API:
if 'response' not in response:
raise vk.error.InvalidAPIResponseError(response)
return response['response']
- except URLError:
+ except (ConnectionError, URLError):
raise vk.error.APIConnectionError()
@staticmethod