From: W. Trevor King Date: Wed, 23 Sep 2009 14:07:38 +0000 (-0400) Subject: Fixed bugdir name collision in cmdutil.bug_from_shortname() X-Git-Tag: 1.0.0~62^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b910115f83a697cef38dd91c76b40c3a49954044;p=be.git Fixed bugdir name collision in cmdutil.bug_from_shortname() --- diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py index 8c1c612..9b64142 100644 --- a/libbe/cmdutil.py +++ b/libbe/cmdutil.py @@ -212,12 +212,12 @@ def underlined(instring): return "%s\n%s" % (instring, "="*len(instring)) -def bug_from_shortname(bugdir, shortname): +def bug_from_shortname(bdir, shortname): """ Exception translation for the command-line interface. """ try: - bug = bugdir.bug_from_shortname(shortname) + bug = bdir.bug_from_shortname(shortname) except (bugdir.MultipleBugMatches, bugdir.NoBugMatches), e: raise UserError(e.message) return bug