summaryrefslogtreecommitdiffstats
path: root/client/bug_list.py
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-05 01:30:14 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-05 01:30:14 +0200
commit99f748ed7f445c5dfb019b6327d119e08f00cad4 (patch)
tree6310abef82613afc1fa6b23b4a3855a4e519f1eb /client/bug_list.py
parent571976cb2780ab0272b95b05bff860a3b8f04cc9 (diff)
downloadtbt-master.tar.xz
another massive commitHEADmaster
all of this should be squashed later.. at least most of it works now, I think... I should add some tests probably.
Diffstat (limited to 'client/bug_list.py')
-rwxr-xr-xclient/bug_list.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/bug_list.py b/client/bug_list.py
index 701b327..87e60d8 100755
--- a/client/bug_list.py
+++ b/client/bug_list.py
@@ -12,12 +12,12 @@ from docopt import docopt
from textwrap import indent
from datetime import datetime
from bug_show import show_ticket
-import json, requests
+import json, requests, sys
if __name__ == '__main__':
print(docopt(__doc__))
-def call(args):
+def entrypoint(args):
print(args)
api_endpoint = args['--uri'] + '/api/1.0/tickets'
@@ -25,7 +25,7 @@ def call(args):
tickets = json.loads(r.text)
if not tickets:
- exit("No tickets found.")
+ sys.exit("No tickets found.")
tickets = tickets.get('tickets')