summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-08-29 13:26:00 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2015-08-29 20:50:00 +0200
commitb79fc11d730b5beff92e9dd8853a61524cdeffe3 (patch)
tree831f63a2de361dc8e91927da76dff78860d22885 /django/utils
parentfe6ddb837d18bd4e71cd22fc18272d31478b19f2 (diff)
Made the autoreloader survive all exceptions.
Refs #24704.
Diffstat (limited to 'django/utils')
-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