summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/utils/autoreload.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py
index 0cf00a9646..4fba0fe1a0 100644
--- a/django/utils/autoreload.py
+++ b/django/utils/autoreload.py
@@ -224,8 +224,7 @@ def check_errors(fn):
global _exception
try:
fn(*args, **kwargs)
- except (ImportError, IndentationError, NameError, SyntaxError,
- TypeError, AttributeError):
+ except Exception:
_exception = sys.exc_info()
et, ev, tb = _exception