summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/template/defaultfilters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py
index a08ce2710d..02cac06bcf 100644
--- a/django/template/defaultfilters.py
+++ b/django/template/defaultfilters.py
@@ -644,7 +644,7 @@ def slice_filter(value, arg):
bits.append(int(x))
return value[slice(*bits)]
- except (ValueError, TypeError):
+ except (ValueError, TypeError, KeyError):
return value # Fail silently.