aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r--lib/bb/command.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 39a2e18a0..c842497e6 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -148,8 +148,10 @@ class CommandsSync:
Get any command parsed from the commandline
"""
cmd_action = command.cooker.commandlineAction
- if cmd_action['msg']:
- raise CommandError(msg)
+ if cmd_action is None:
+ return None
+ elif 'msg' in cmd_action and cmd_action['msg']:
+ raise CommandError(cmd_action['msg'])
else:
return cmd_action['action']