mirror of https://github.com/django/django.git
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:
parent
eb6c107624
commit
f9a46d7bc9
|
@ -63,6 +63,8 @@ def code_changed():
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
for filename in filenames + _error_files:
|
for filename in filenames + _error_files:
|
||||||
|
if not filename:
|
||||||
|
continue
|
||||||
if filename.endswith(".pyc") or filename.endswith(".pyo"):
|
if filename.endswith(".pyc") or filename.endswith(".pyo"):
|
||||||
filename = filename[:-1]
|
filename = filename[:-1]
|
||||||
if filename.endswith("$py.class"):
|
if filename.endswith("$py.class"):
|
||||||
|
|
Loading…
Reference in New Issue