diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-08-29 13:26:00 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-08-29 20:50:00 +0200 |
| commit | b79fc11d730b5beff92e9dd8853a61524cdeffe3 (patch) | |
| tree | 831f63a2de361dc8e91927da76dff78860d22885 /django | |
| parent | fe6ddb837d18bd4e71cd22fc18272d31478b19f2 (diff) | |
Made the autoreloader survive all exceptions.
Refs #24704.
Diffstat (limited to 'django')
| -rw-r--r-- | django/utils/autoreload.py | 3 |
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 |
