From f108aa1fe803407ff47f86e44f2ff9414eeaf00d Mon Sep 17 00:00:00 2001 From: Gianluca Montecchi Date: Wed, 24 Jun 2009 17:26:50 -0400 Subject: [PATCH] Only print a target in "be target list" if it's a string. --- becommands/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/becommands/target.py b/becommands/target.py index e7ebcca..46b7898 100644 --- a/becommands/target.py +++ b/becommands/target.py @@ -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]) -- 2.26.2