mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-24111: FileNotFoundError is Py3 only, use general OSError which is available in Py2
This commit is contained in:
@@ -24,7 +24,7 @@ class FileChangesTracker(object):
|
||||
for file in map(lambda f: os.path.join(tmp_folder, f), files):
|
||||
try:
|
||||
result.update({file: os.path.getmtime(file)})
|
||||
except FileNotFoundError: # on Windows long path may lead to it: PY-23386
|
||||
except OSError: # on Windows long path may lead to it: PY-23386
|
||||
message = "PyCharm can't check if the following file been updated: {0}\n".format(str(file))
|
||||
sys.stderr.write(message)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user