The calling below seems like a typo to me. How can we index with
a variable which has not been initialized yet?
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:
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:
bugdirs = self._get_bugdirs()
if params['resolve'] == True:
if params['bugdir']:
- bugdir = bugdirs[bugdir]
+ bugdir = bugdirs[params['bugdir']]
elif len(bugdirs) == 1:
bugdir = bugdirs.values()[0]
else: