diff options
Diffstat (limited to 'vk/api.py')
-rw-r--r-- | vk/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |