summaryrefslogtreecommitdiffstats
path: root/base/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'base/base.py')
-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: