Permalink
Browse files

Made dev server autoreloader ignore filenames reported as None.

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

Ref #9589.
  • Loading branch information...
1 parent eb6c107 commit f9a46d7bc9b321214f75c2e5fa8f416405a59ed9 Thomas Bartelmess committed with ramiro Dec 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 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"):

0 comments on commit f9a46d7

Please sign in to comment.