From d5a07dcdb30c302813eaae55faa93569410710d6 Mon Sep 17 00:00:00 2001 From: Aaron Boman Date: Sat, 8 Oct 2016 17:09:33 -0500 Subject: [PATCH] Fix get_invocation_command_nodefault(). It was possible for command to be None. Thus, calling ' '.join(None) directly would error out. --- src/tools/common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tools/common.py b/src/tools/common.py index 18ea0542b..8bf33a063 100644 --- a/src/tools/common.py +++ b/src/tools/common.py @@ -314,9 +314,8 @@ def get_invocation_command_nodefault( #FIXME #ECHO "warning: initialized from" [ errors.nearest-user-location ] command = [] - command = ' '.join(command) - - assert(isinstance(command, str)) + if command: + command = ' '.join(command) return command