aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vk/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vk/api.py b/vk/api.py
index e942172..eb1914e 100644
--- a/vk/api.py
+++ b/vk/api.py
@@ -102,8 +102,8 @@ class API:
raise vk.error.InvalidAPIResponseError(response)
#print(response)
return response['response']
- except (ConnectionError, URLError):
- raise vk.error.APIConnectionError()
+ except (ConnectionError, URLError) as e:
+ raise vk.error.APIConnectionError(str(e)) from e
def _should_skip_user(self, user):
return self._skip_deactivated_users and user.is_deactivated()