diff options
Diffstat (limited to 'becommands/remove.py')
-rw-r--r-- | becommands/remove.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/becommands/remove.py b/becommands/remove.py index 884b792..bc7b5ed 100644 --- a/becommands/remove.py +++ b/becommands/remove.py @@ -30,7 +30,7 @@ def execute(args, manipulate_encodings=True): >>> bd._clear_bugs() >>> try: ... bd.bug_from_shortname("b") - ... except KeyError: + ... except bugdir.NoBugMatches: ... print "Bug not found" Bug not found """ @@ -42,7 +42,7 @@ def execute(args, manipulate_encodings=True): raise cmdutil.UsageError, "Please specify a bug id." bd = bugdir.BugDir(from_disk=True, manipulate_encodings=manipulate_encodings) - bug = bd.bug_from_shortname(args[0]) + bug = cmdutil.bug_from_shortname(bd, args[0]) bd.remove_bug(bug) print "Removed bug %s" % bug.uuid |