Skip to content

Commit

Permalink
Bug fix for range_error_message function
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymous378 authored May 22, 2021
1 parent 232e841 commit b952b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydal/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ def range_error_message(error_message, what_to_enter, minimum, maximum):
error_message += " less than or equal to %(max)g"
if type(maximum) in integer_types:
maximum -= 1
return translate(error_message) % dict(min=minimum, max=maximum)
return str(translate(error_message)) % dict(min=minimum, max=maximum)


class IS_INT_IN_RANGE(Validator):
Expand Down

0 comments on commit b952b75

Please sign in to comment.