From 74416f343c614218667a8d981468e8fa54edf820 Mon Sep 17 00:00:00 2001 From: Dave Parker Date: Sun, 26 Apr 2020 11:01:23 +0100 Subject: [PATCH] prism-log-extract bug fix: model_file field does not always need to be present. --- prism/etc/scripts/prism-log-extract | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/prism/etc/scripts/prism-log-extract b/prism/etc/scripts/prism-log-extract index 8c9db2f8..572c479f 100755 --- a/prism/etc/scripts/prism-log-extract +++ b/prism/etc/scripts/prism-log-extract @@ -129,11 +129,7 @@ def grep_for_info_file(logFile, fields): info[field] = os.path.basename(info[field]) if 'type' in field_details and field_details['type'] in ['string', 'file']: info[field] = '"' + info[field] + '"' - # If there is not at least a model_file, we assume something went wrong - if (info['model_file']): - return [info] - else: - return [] + return [info] # Print info from a log, i.e. a list of fields, comma-separated def print_info(info, fields):