Skip to content

Commit

Permalink
Bug fix for range_error_message function (#665)
Browse files Browse the repository at this point in the history
See #664
  • Loading branch information
anonymous378 authored May 30, 2021
1 parent 7351853 commit 7237a87
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 7237a87

Please sign in to comment.