diff --git a/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py b/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py index ff9acad285bc78ec43796fd59d01a6cfc3e9b018..12bab0878747b87643d05cb0bdcd4f0217cc7904 100644 --- a/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py +++ b/api-openbis-python3-pybis/src/python/pybis/property_reformatter.py @@ -45,12 +45,9 @@ class PropertyReformatter: for key, value in properties.items(): property_type = self.openbis.get_property_type(key) - match property_type.dataType: - case 'TIMESTAMP': - properties[key] = self._format_timestamp(value) - case _: - pass - + if property_type.dataType == 'TIMESTAMP': + properties[key] = self._format_timestamp(value) + return properties def _format_timestamp(self, value):