Skip to content

Commit

Permalink
Check for derived types for configuration (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavge committed Mar 5, 2024
1 parent 29b1f94 commit f659364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dateparser/conf.py
Expand Up @@ -243,7 +243,7 @@ def check_settings(settings):
setting_props = settings_values[setting_name]

# check type:
if not setting_type == setting_props["type"]:
if not isinstance(setting_value, setting_props["type"]):
raise SettingValidationError(
'"{}" must be "{}", not "{}".'.format(
setting_name, setting_props["type"].__name__, setting_type.__name__
Expand Down

0 comments on commit f659364

Please sign in to comment.