##// END OF EJS Templates
paginator: report better expcetions
super-admin -
r4901:5306528b default
parent child Browse files
Show More
@@ -295,10 +295,10 b' class _Page(list):'
295 295 first = (self.page - 1) * items_per_page
296 296 last = first + items_per_page
297 297 self.items = list(self.collection[first:last])
298 except TypeError:
298 except TypeError as err:
299 299 raise TypeError(
300 300 "Your collection of type {} cannot be handled "
301 "by paginate.".format(type(self.collection))
301 "by paginate. ERROR:{}".format(type(self.collection), err)
302 302 )
303 303
304 304 # Unless the user tells us how many items the collections has
General Comments 0
You need to be logged in to leave comments. Login now