extract_metadata: Set slicer type to "Unknown" if not able to detect

Signed-off-by:  Eric Callahan <akrsine.code@gmail.com>
This commit is contained in:
Arksine 2020-08-30 15:27:46 -04:00
parent 304e861a28
commit bcb7e17105
1 changed files with 2 additions and 0 deletions

View File

@ -324,6 +324,8 @@ def extract_metadata(file_path, log):
result = func()
if result is not None:
metadata[key] = result
else:
metadata['slicer'] = "Unknown"
return metadata
def main(path, filename):