From f9a46d7bc9b321214f75c2e5fa8f416405a59ed9 Mon Sep 17 00:00:00 2001 From: Thomas Bartelmess Date: Tue, 25 Dec 2012 20:37:39 -0500 Subject: [PATCH] Made dev server autoreloader ignore filenames reported as None. Useful under Jython. Thanks Thomas Bartelmess for the report and patch. Ref #9589. --- django/utils/autoreload.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 617fc9da7d..cc9cc1304a 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -63,6 +63,8 @@ def code_changed(): except AttributeError: pass for filename in filenames + _error_files: + if not filename: + continue if filename.endswith(".pyc") or filename.endswith(".pyo"): filename = filename[:-1] if filename.endswith("$py.class"):