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