Commits

Anonymous committed 01e92cf

filesystem: handle denied permissions

  • Participants
  • Parent commits 2906bf7

Comments (0)

Files changed (1)

File drink/objects/filesystem.py

         if self.fd:
             try:
                 return self.fd.listdir()
-            except fs.errors.ResourceNotFoundError:
+            except (fs.errors.ResourceNotFoundError, fs.errors.PermissionDeniedError):
                 return []
         else:
             return []