Skip to content

Commit

Permalink
Fix misuse of variable type instead of variable in type check
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavge authored Mar 5, 2024
1 parent 00a7c16 commit 776a10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dateparser/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def check_settings(settings):
setting_props = settings_values[setting_name]

# check type:
if not isinstance(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 776a10c

Please sign in to comment.