From 24561f3eaeb06d8146fca4f5e343f46a2679fc7f Mon Sep 17 00:00:00 2001 From: Berk Onat <b.onat@warwick.ac.uk> Date: Thu, 19 Apr 2018 17:33:59 +0100 Subject: [PATCH] Fixing system_name error if the name is not given --- common/python/nomadcore/smart_parser/SmartParserCommon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/python/nomadcore/smart_parser/SmartParserCommon.py b/common/python/nomadcore/smart_parser/SmartParserCommon.py index 2306446..3dcb371 100644 --- a/common/python/nomadcore/smart_parser/SmartParserCommon.py +++ b/common/python/nomadcore/smart_parser/SmartParserCommon.py @@ -226,7 +226,8 @@ class ParserBase(object): supB = backend.superBackend if self.topology: topoDict = self.topology.topoDict - system_name = topoDict["system_name"] + if "system_name" in topoDict: + system_name = topoDict["system_name"] if system_name is not None: supB.addValue('system_name', str(system_name)) -- GitLab