Skip to content

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