isort-identify-imports fails if there are unreadable files in the directory #2330
Open
Description
Steps to reproduce:
- mkdir new_directory
- cd new_directory
- ln -s not_exist bad_link.py
- isort-identify-imports .
isort-identify-imports fails with FileNotFoundError. The same problem occurs when the files is unreadable due to permission issues.
In the case of isort, it is not an error but UserWarning. So I believe isort-identify-imports should do the same.
Emacs creates a lock file with a name like .#some_file.py
as a symbolic link to a nonexistent target when there are unsaved changes in the buffer. As a result, running isort-identify-imports with an unsaved buffer in Emacs will result in an error.
Metadata
Assignees
Labels
No labels