Skip to content

Commit a9163c2

Browse files
committed
Merge from 5.x: PR #20287
Fixes #20286
2 parents 28eebe8 + 4306894 commit a9163c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spyder/plugins/editor/utils/autosave.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ def maybe_autosave(self, index):
373373
finfo = self.stack.data[index]
374374
if finfo.newly_created:
375375
return
376+
376377
orig_filename = finfo.filename
377378
try:
378379
orig_hash = self.file_hashes[orig_filename]
@@ -381,8 +382,9 @@ def maybe_autosave(self, index):
381382
# In this case, use an impossible value for the hash, so that
382383
# contents of buffer are considered different from contents of
383384
# original file.
384-
logger.error('KeyError when retrieving hash of %s', orig_filename)
385+
logger.debug('KeyError when retrieving hash of %s', orig_filename)
385386
orig_hash = None
387+
386388
new_hash = self.stack.compute_hash(finfo)
387389
if orig_filename in self.name_mapping:
388390
autosave_filename = self.name_mapping[orig_filename]

0 commit comments

Comments
 (0)