Fix sanity error

This commit is contained in:
AlanCoding 2020-03-19 08:42:07 -04:00
parent db7f0f9421
commit c5297b0b86
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -155,7 +155,7 @@ def run_module(request, collection_import):
try:
result = json.loads(module_stdout)
except Exception as e:
raise Exception('Module did not write valid JSON, error: {}, stdout:\n{}'.format(str(e), module_stdout))
raise Exception('Module did not write valid JSON, error: {0}, stdout:\n{1}'.format(str(e), module_stdout))
# A module exception should never be a test expectation
if 'exception' in result:
raise Exception('Module encountered error:\n{0}'.format(result['exception']))