diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 3c71fa2dbe4..f26c2c600f4 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