diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-11 16:45:20 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-11 16:45:20 +0000 |
commit | 56c2c54ef00acc75f2bce8ded2b7fa66e8d07712 (patch) | |
tree | feafea20cef817c9c724da2395318146f0fe6772 /libbe/cmdutil.py | |
parent | 0620177b8b876765f1a39245fef4207266f5c2bc (diff) | |
download | bugseverywhere-56c2c54ef00acc75f2bce8ded2b7fa66e8d07712.tar.gz |
Removed friendly bug name
Diffstat (limited to 'libbe/cmdutil.py')
-rw-r--r-- | libbe/cmdutil.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py index e7ded4f..ac67f3a 100644 --- a/libbe/cmdutil.py +++ b/libbe/cmdutil.py @@ -24,14 +24,8 @@ def get_bug(spec, bug_dir): return matches[0] matches = [] - for bug in bugs: - if bug.name == spec: - matches.append(bug) - if len(matches) > 1: - raise UserError("More than one bug has the name %s. Please use the" - " uuid." % spec) if len(matches) == 0: - raise UserError("No bug has the name %s" % spec) + raise UserError("No bug matches %s" % spec) return matches[0] def bug_summary(bug, bugs): |