aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk/api.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-01 16:58:21 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-01 16:58:21 +0300
commite3b6e39708231a84a9de05020d674f2b9e5d08f9 (patch)
tree8aa7394dc37f6b3d22da7898abbefd092b2d464d /vk/api.py
parentonline_duration.py -> online_sessions.py (diff)
downloadvk-scripts-e3b6e39708231a84a9de05020d674f2b9e5d08f9.tar.gz
vk-scripts-e3b6e39708231a84a9de05020d674f2b9e5d08f9.zip
fix licensing notices
Diffstat (limited to 'vk/api.py')
-rw-r--r--vk/api.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/vk/api.py b/vk/api.py
index 933d3a5..e942172 100644
--- a/vk/api.py
+++ b/vk/api.py
@@ -1,6 +1,7 @@
-# Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from collections import Iterable
from collections.abc import Mapping
@@ -99,6 +100,7 @@ class API:
response = json.loads(response.read().decode())
if 'response' not in response:
raise vk.error.InvalidAPIResponseError(response)
+ #print(response)
return response['response']
except (ConnectionError, URLError):
raise vk.error.APIConnectionError()