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