aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/cmdutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/cmdutil.py')
-rw-r--r--libbe/cmdutil.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py
index b39aa51..0bee9db 100644
--- a/libbe/cmdutil.py
+++ b/libbe/cmdutil.py
@@ -71,7 +71,8 @@ def get_command(command_name):
def execute(cmd, args):
enc = encoding.get_encoding()
- get_command(cmd).execute([a.decode(enc) for a in args])
+ cmd = get_command(cmd)
+ cmd.execute([a.decode(enc) for a in args])
return 0
def help(cmd=None):