1
0
forked from VimPlug/jedi

Remove FileNotFoundError compatibility

This commit is contained in:
Dave Halter
2020-07-02 01:05:13 +02:00
parent 0538a3e224
commit f9a35ae42a
8 changed files with 6 additions and 14 deletions

View File

@@ -71,7 +71,7 @@ class ZipFileIO(file_io.KnownContentFileIO, FileIOFolderMixin):
def get_last_modified(self):
try:
return os.path.getmtime(self._zip_path)
except OSError: # Python 3 would probably only need FileNotFoundError
except (FileNotFoundError, PermissionError):
return None