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:
parent
eb6c107624
commit
f9a46d7bc9
@ -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"):
|
||||
|
Loading…
Reference in New Issue
Block a user