Show More
@@ -295,10 +295,10 b' class _Page(list):' | |||||
295 | first = (self.page - 1) * items_per_page |
|
295 | first = (self.page - 1) * items_per_page | |
296 | last = first + items_per_page |
|
296 | last = first + items_per_page | |
297 | self.items = list(self.collection[first:last]) |
|
297 | self.items = list(self.collection[first:last]) | |
298 | except TypeError: |
|
298 | except TypeError as err: | |
299 | raise TypeError( |
|
299 | raise TypeError( | |
300 | "Your collection of type {} cannot be handled " |
|
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 | # Unless the user tells us how many items the collections has |
|
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