diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-04 10:11:42 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-04 10:11:42 +0100 |
| commit | 4d738fcc3bad4e13c3667646a86f9a17603b7d23 (patch) | |
| tree | 037657b3ab7e01dd7e1de10bb7a3fc3e0fba3985 | |
| parent | 12615dab78cb6fc7d8c74b7b65a4136b0feeb33f (diff) | |
Fixed #21546 -- Strengthened kqueue detection.
Thanks Loic Bistuer.
| -rw-r--r-- | django/utils/autoreload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 3c71fa2dbe..f26c2c600f 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -82,7 +82,7 @@ try: import subprocess command = ["sysctl", "-n", "kern.maxfilesperproc"] NOFILES_KERN = int(subprocess.check_output(command).strip()) -except (AttributeError, OSError): +except Exception: USE_KQUEUE = False RUN_RELOADER = True |
