From 422c38fa4ecc7d744e414096f89c01cbf2b130b2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 19 Jun 2016 01:51:07 +0300 Subject: bugfix --- vk/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3