From d0d56b6639507931f6239180c8b298e1adc2a5e5 Mon Sep 17 00:00:00 2001 From: Wolfgang Kaltz Date: Wed, 18 Oct 2023 10:54:23 +0200 Subject: [PATCH] Adapt code to new coding style requirement --- pyramid_oereb/core/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyramid_oereb/core/config.py b/pyramid_oereb/core/config.py index e564e1ffed..11f3d70c87 100644 --- a/pyramid_oereb/core/config.py +++ b/pyramid_oereb/core/config.py @@ -1577,8 +1577,8 @@ def _get_object_path(current_path, current_object, path, default, required): current_path.append(k) - if type(current_object[k]) != dict: - raise ConfigurationError('The configuration {} is not an object.'.format( + if not isinstance(current_object[k], dict): + raise ConfigurationError('The configuration {} is not a dictionary.'.format( '.'.join(current_path))) return Config._get_object_path(current_path, current_object[k], path[1:], default, required)