From 49808306c939de24acabc423024970a76055e52b Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 31 Oct 2013 18:46:09 +0100 Subject: Incorrect accquiring bugdir command line argument The calling below seems like a typo to me. How can we index with a variable which has not been initialized yet? --- libbe/command/set.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbe/command/set.py') diff --git a/libbe/command/set.py b/libbe/command/set.py index 9413a13..d552878 100644 --- a/libbe/command/set.py +++ b/libbe/command/set.py @@ -77,7 +77,7 @@ class Set (libbe.command.Command): def _run(self, **params): bugdirs = self._get_bugdirs() if params['bugdir']: - bugdir = bugdirs[bugdir] + bugdir = bugdirs[params['bugdir']] elif len(bugdirs) == 1: bugdir = bugdirs.values()[0] else: -- cgit