diff options
| author | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2008-10-05 02:13:10 -0400 |
|---|---|---|
| committer | Yaakov M. Nemoy <loupgaroublond@gmail.com> | 2008-10-05 02:13:10 -0400 |
| commit | 0abf50482d83242e4c94545ffb2e66d3ff8ab6cc (patch) | |
| tree | d1aaafb317b2d086625a04388e6c045d7acc5a39 /base | |
| parent | aecaf493b4e9a6b2da88a8dd7c14ad7c9e039ad3 (diff) | |
| download | fedora-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.py | 13 |
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: |
