aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/api.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-07-17 20:20:10 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-07-17 20:20:10 +0300
commita320153d3ee820434fc390029328b853e3434fc6 (patch)
treeed9a3ca1866a2ea9203857a4f43e1d3ac60d3776 /api.py
parentREADME update (diff)
downloadvk-scripts-a320153d3ee820434fc390029328b853e3434fc6.tar.gz
vk-scripts-a320153d3ee820434fc390029328b853e3434fc6.zip
bugfix
Diffstat (limited to 'api.py')
-rw-r--r--api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.py b/api.py
index d584c2b..5d11e4f 100644
--- a/api.py
+++ b/api.py
@@ -10,7 +10,7 @@ def call_method(method_name, **kwargs):
response = json.loads(urllib.request.urlopen(url).read().decode())
if 'response' not in response:
print(response, file=sys.stderr)
- sys.exit(-1)
+ sys.exit(1)
return response['response']
def users_get(**kwargs):