From 4d738fcc3bad4e13c3667646a86f9a17603b7d23 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 4 Dec 2013 10:11:42 +0100 Subject: [PATCH] Fixed #21546 -- Strengthened kqueue detection. Thanks Loic Bistuer. --- django/utils/autoreload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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