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.
Edited by Antoine Lambert