From 87473d2352cdbe004687ba25758f55f974aed821 Mon Sep 17 00:00:00 2001 From: Jens Flemming Date: Thu, 15 Aug 2024 12:31:39 +0200 Subject: [PATCH] Use default permissions if no permissions are available (catch AttributeError) --- jupyterfs/fsmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterfs/fsmanager.py b/jupyterfs/fsmanager.py index 38ffbab..1ad6726 100644 --- a/jupyterfs/fsmanager.py +++ b/jupyterfs/fsmanager.py @@ -281,7 +281,7 @@ def _base_model(self, path, info): try: # Fall back on "u_w" check, even if we don't know if our user == owner... model["writable"] = info.permissions.check("u_w") - except (errors.MissingInfoNamespace,): + except (errors.MissingInfoNamespace, AttributeError): # use default if access namespace is missing model["writable"] = self._default_writable except (OSError, PermissionDenied):