From e1017e3610f31da50aa04007dbacf81f6b8f839f Mon Sep 17 00:00:00 2001 From: Sanghyun Ko Date: Thu, 15 Aug 2024 11:20:32 +0200 Subject: [PATCH] fix typo from PR #1308 --- DDG4/python/DDSim/Helper/Geometry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DDG4/python/DDSim/Helper/Geometry.py b/DDG4/python/DDSim/Helper/Geometry.py index dbc84602a..f2bdf72af 100644 --- a/DDG4/python/DDSim/Helper/Geometry.py +++ b/DDG4/python/DDSim/Helper/Geometry.py @@ -66,7 +66,8 @@ def regexSensitiveDetector(self, val): for value in val: self.__checkRegexKeys(value) self._regexSDDetectorList.append(value) - raise RuntimeError(f"Unsupported type for regexSensitiveDetector: {val!r}") + else: + raise RuntimeError(f"Unsupported type for regexSensitiveDetector: {val!r}") @staticmethod def __checkRegexKeys(val):