aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/new.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2013-10-31 18:46:09 +0100
committerW. Trevor King <wking@tremily.us>2013-10-31 13:26:01 -0700
commit49808306c939de24acabc423024970a76055e52b (patch)
treed8f49aac2841880f2ff7349e72a9cf30c386d1dd /libbe/command/new.py
parenta0e9e3d1bbe32343a1214c0f6b52f24b8108b193 (diff)
downloadbugseverywhere-49808306c939de24acabc423024970a76055e52b.tar.gz
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?
Diffstat (limited to 'libbe/command/new.py')
-rw-r--r--libbe/command/new.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/command/new.py b/libbe/command/new.py
index 6e94e79..33ede50 100644
--- a/libbe/command/new.py
+++ b/libbe/command/new.py
@@ -118,7 +118,7 @@ class New (libbe.command.Command):
storage = self._get_storage()
bugdirs = self._get_bugdirs()
if params['bugdir']:
- bugdir = bugdirs[bugdir]
+ bugdir = bugdirs[params['bugdir']]
elif len(bugdirs) == 1:
bugdir = bugdirs.values()[0]
else: