Fix `be show` handling for no IDs
authorW. Trevor King <wking@drexel.edu>
Fri, 29 Jan 2010 19:32:27 +0000 (14:32 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 29 Jan 2010 19:32:27 +0000 (14:32 -0500)
libbe/command/show.py

index e102391b6be892d4695a158c8c98d04f43054bae..ab3be733fbe9371b0fcd426b12a52a99f4b18c12 100644 (file)
@@ -166,7 +166,7 @@ def _xml_footer():
     return ['</be-xml>']
 
 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)