diff options
| author | Tom Forbes <tom@tomforb.es> | 2019-07-21 21:55:25 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-07-23 10:03:23 +0200 |
| commit | 2ff517ccb6116c1be6338e6bdcf08a313defc5c7 (patch) | |
| tree | c766145aa24347403e7b42818791cfa20b0edb38 /django/utils/autoreload.py | |
| parent | 60dc957a825232fdda9138e2f8878b2ca407a7c9 (diff) | |
Fixed #30506 -- Fixed crash of autoreloader when path contains null characters.
Diffstat (limited to 'django/utils/autoreload.py')
| -rw-r--r-- | django/utils/autoreload.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 25c3b44250..bf3b14609a 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -143,6 +143,10 @@ def iter_modules_and_files(modules, extra_files): # The module could have been removed, don't fail loudly if this # is the case. continue + except ValueError as e: + # Network filesystems may return null bytes in file paths. + logger.debug('"%s" raised when resolving path: "%s"' % (str(e), path)) + continue results.add(resolved_path) return frozenset(results) |
