aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-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