Only print a target in "be target list" if it's a string.
authorGianluca Montecchi <gian@grys.it>
Wed, 24 Jun 2009 21:26:50 +0000 (17:26 -0400)
committerGianluca Montecchi <gian@grys.it>
Wed, 24 Jun 2009 21:26:50 +0000 (17:26 -0400)
becommands/target.py

index e7ebccabb0002dc91e683b618913afe6a1b5261e..46b7898dcc3dcf68c15e7175e54bc6c6d0a045a9 100644 (file)
@@ -42,7 +42,7 @@ def execute(args, test=False):
     if len(args) == 1 and args[0] == "list":
         ts = set([bd.bug_from_uuid(bug).target for bug in bd.list_uuids()])
         for target in sorted(ts):
-            if target:
+            if target and isinstance(target, str):
                 print target
         return
     bug = bd.bug_from_shortname(args[0])