Skip to content
Snippets Groups Projects
Commit c6fb5c2e authored by Antoine Lambert's avatar Antoine Lambert
Browse files

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.
parent a15d532e
No related branches found
No related tags found
1 merge request!377config: Handle NotADirectoryError exception in exists_accessible
Pipeline #8786 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment