Fix some directory issues

This commit is contained in:
Dave Halter
2020-07-02 01:17:35 +02:00
parent 227cf00638
commit e6a748b1a7
2 changed files with 2 additions and 2 deletions
+1 -1
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 (FileNotFoundError, PermissionError):
except (FileNotFoundError, PermissionError, NotADirectoryError):
return None