summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/utils/autoreload.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py
index 35952d5631..c959cd04ca 100644
--- a/django/utils/autoreload.py
+++ b/django/utils/autoreload.py
@@ -333,9 +333,9 @@ class StatReloader(BaseReloader):
while True:
for filepath, mtime in self.snapshot_files():
old_time = mtimes.get(filepath)
+ mtimes[filepath] = mtime
if old_time is None:
logger.debug('File %s first seen with mtime %s', filepath, mtime)
- mtimes[filepath] = mtime
continue
elif mtime > old_time:
logger.debug('File %s previous mtime: %s, current mtime: %s', filepath, old_time, mtime)