From: Gianluca Montecchi Date: Wed, 24 Jun 2009 21:26:50 +0000 (-0400) Subject: Only print a target in "be target list" if it's a string. X-Git-Tag: 1.0.0~73 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f108aa1fe803407ff47f86e44f2ff9414eeaf00d;p=be.git Only print a target in "be target list" if it's a string. --- 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])