Skip to content

Commit

Permalink
Adapt code to new coding style requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
jwkaltz committed Oct 18, 2023
1 parent 62a7f64 commit d0d56b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyramid_oereb/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Check warning on line 1581 in pyramid_oereb/core/config.py

View check run for this annotation

Codecov / codecov/patch

pyramid_oereb/core/config.py#L1581

Added line #L1581 was not covered by tests
'.'.join(current_path)))

return Config._get_object_path(current_path, current_object[k], path[1:], default, required)
Expand Down

0 comments on commit d0d56b6

Please sign in to comment.