From b79fc11d730b5beff92e9dd8853a61524cdeffe3 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 29 Aug 2015 13:26:00 +0200 Subject: Made the autoreloader survive all exceptions. Refs #24704. --- django/utils/autoreload.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'django/utils') 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 -- cgit v1.3