From: W. Trevor King Date: Fri, 29 Jan 2010 19:32:27 +0000 (-0500) Subject: Fix `be show` handling for no IDs X-Git-Tag: 1.0.0~59^2~23 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=55e43b6c6f260e3fd1bbed93fcabdb9790404904;p=be.git Fix `be show` handling for no IDs --- diff --git a/libbe/command/show.py b/libbe/command/show.py index e102391..ab3be73 100644 --- a/libbe/command/show.py +++ b/libbe/command/show.py @@ -166,7 +166,7 @@ def _xml_footer(): return [''] def output(bd, ids, encoding, as_xml=True, with_comments=True): - if len(ids) == 0: + if ids == None or len(ids) == 0: bd.load_all_bugs() ids = [bug.id.user() for bug in bd] bugs,root_comments = _sort_ids(bd, ids, with_comments)