0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Made dev server autoreloader ignore filenames reported as None.

Useful under Jython. Thanks Thomas Bartelmess for the report and patch.

Ref #9589.
This commit is contained in:
Thomas Bartelmess 2012-12-25 20:37:39 -05:00 committed by Ramiro Morales
parent eb6c107624
commit f9a46d7bc9

View File

@ -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"):