django-select2-forms icon indicating copy to clipboard operation
django-select2-forms copied to clipboard

Minor bug in validation of ajax 'page' parameter

Open crawley opened this issue 3 years ago • 0 comments

I noticed this in select2/Select2View.py

            try:
                page = int(page)
            except TypeError:
                raise InvalidParameter("Invalid page '%s' passed")
            else:
                if page < 1:
                    raise InvalidParameter("Invalid page '%s' passed")

The value of page needs to be interpolated into both exception messages.

crawley avatar Nov 18 '22 02:11 crawley