diff --git a/rhodecode/lib/pagination.py b/rhodecode/lib/pagination.py --- a/rhodecode/lib/pagination.py +++ b/rhodecode/lib/pagination.py @@ -295,10 +295,10 @@ class _Page(list): first = (self.page - 1) * items_per_page last = first + items_per_page self.items = list(self.collection[first:last]) - except TypeError: + except TypeError as err: raise TypeError( "Your collection of type {} cannot be handled " - "by paginate.".format(type(self.collection)) + "by paginate. ERROR:{}".format(type(self.collection), err) ) # Unless the user tells us how many items the collections has