Skip to content
Snippets Groups Projects

config: Handle NotADirectoryError exception in exists_accessible

Make the function returns False when such exception is raised, for instance when a .swh file exists in home directory.

It fixes pre-commit mypy check in swh-web for such edge cases.

See https://paste.debian.net/1317031/.

Edited by Antoine Lambert

Merge request reports

Pipeline #8780 passed

Pipeline passed for c6fb5c2e on anlambert:exists-accessible-handle-not-a-dir-error

Closed by avatar (Apr 19, 2025 3:18pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading