Fix "except"
This commit is contained in:
@@ -111,7 +111,7 @@ class SortableAdmin(SortableAdminBase, ModelAdmin):
|
|||||||
if sort_filter_index:
|
if sort_filter_index:
|
||||||
try:
|
try:
|
||||||
filters = self.model.sorting_filters[int(sort_filter_index)][1]
|
filters = self.model.sorting_filters[int(sort_filter_index)][1]
|
||||||
except IndexError, ValueError:
|
except (IndexError, ValueError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Apply any sort filters to create a subset of sortable objects
|
# Apply any sort filters to create a subset of sortable objects
|
||||||
|
|||||||
Reference in New Issue
Block a user