Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repomap.get_tags_raw doesn't crash on UTF-16 files
Related to #305, Aider would crash while building a repomap when attempting to load a file with non UTF-16 content. This commit adds a try/except block that returns nothing back to the caller, allowing repomap to skip the file and continue. Future considerations might be to use the read_file function in `io.py` I've not run any tests other than ensuring that `/tokens` does not crash when a non UTF-8 file is present in the Git repo.
- Loading branch information