Skip to content

Commit

Permalink
Merge pull request #212 from jeflem/none_permissions_fix
Browse files Browse the repository at this point in the history
Fix AttributeError if no permissions are available (webdav resources, for instance)
  • Loading branch information
timkpaine authored Oct 2, 2024
2 parents 7080b57 + 1afd3f7 commit 493a5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyterfs/fsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 493a5db

Please sign in to comment.