summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2008-10-05 02:13:10 -0400
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2008-10-05 02:13:10 -0400
commit0abf50482d83242e4c94545ffb2e66d3ff8ab6cc (patch)
treed1aaafb317b2d086625a04388e6c045d7acc5a39 /base
parentaecaf493b4e9a6b2da88a8dd7c14ad7c9e039ad3 (diff)
downloadfedora-devshell-0abf50482d83242e4c94545ffb2e66d3ff8ab6cc.tar.gz
fedora-devshell-0abf50482d83242e4c94545ffb2e66d3ff8ab6cc.tar.xz
fedora-devshell-0abf50482d83242e4c94545ffb2e66d3ff8ab6cc.zip
Apparently methods with no paramaters were not being executed
Diffstat (limited to 'base')
-rw-r--r--base/base.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/base/base.py b/base/base.py
index 1010af8..06934f7 100644
--- a/base/base.py
+++ b/base/base.py
@@ -168,13 +168,12 @@ def do_command(data, top=None):
log.debug("adding argument: %s" % param)
params += [param]
output = None
- if len(params):
- try:
- output = top(*params)
- except ExecutionException, e:
- # TODO: maket his as helpful as possible to the user
- log.critical('execution of command failed because: %s' % e.message)
-
+ try:
+ output = top(*params)
+ except ExecutionException, e:
+ # TODO: maket his as helpful as possible to the user
+ log.critical('execution of command failed because: %s' % e.message)
+
if module:
return output, module, mod_params
else: