mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-04-09 09:21:04 +00:00
Fix "except"
This commit is contained in:
parent
15e3fb88bf
commit
357268e9b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue