diff options
author | Pawel Hajdan, Jr <phajdan.jr@gentoo.org> | 2011-06-02 17:41:38 +0200 |
---|---|---|
committer | Pawel Hajdan, Jr <phajdan.jr@gentoo.org> | 2011-06-02 17:41:38 +0200 |
commit | 67fb002b35cfd56ee6d07838b55ec3723518198d (patch) | |
tree | 6a40c8c441dd2d64de5b4b61828144f4188a73e9 /bugzilla-viewer.py | |
parent | Make sure to unicode-sanitize all strings passed to ncurses to prevent runtim... (diff) | |
download | arch-tools-67fb002b35cfd56ee6d07838b55ec3723518198d.tar.gz arch-tools-67fb002b35cfd56ee6d07838b55ec3723518198d.tar.bz2 arch-tools-67fb002b35cfd56ee6d07838b55ec3723518198d.zip |
Gracefully handle empty bug queue.
Diffstat (limited to 'bugzilla-viewer.py')
-rwxr-xr-x | bugzilla-viewer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bugzilla-viewer.py b/bugzilla-viewer.py index e62ac98..d04e6db 100755 --- a/bugzilla-viewer.py +++ b/bugzilla-viewer.py @@ -276,6 +276,10 @@ if __name__ == "__main__": raw_bugs = bugzilla.search("", cc="%s@gentoo.org" % options.arch, keywords="STABLEREQ", status=None) bugs = [Bug(xml) for xml in bugzilla.get([bug['bugid'] for bug in raw_bugs]).findall("bug")] + if not bugs: + print 'The bug list is empty. Exiting.' + sys.exit(0) + dep_bug_ids = [] bugs_dict = {} |