handle submodules (or other dirs) which are git tracked #336

This commit is contained in:
Paul Gauthier 2023-11-15 13:34:29 -08:00
parent 5d0e92296a
commit bf6cd8294e
3 changed files with 29 additions and 46 deletions

View file

@ -146,6 +146,9 @@ class InputOutput:
except FileNotFoundError:
self.tool_error(f"{filename}: file not found error")
return
except IsADirectoryError:
self.tool_error(f"{filename}: is a directory")
return
except UnicodeError as e:
self.tool_error(f"{filename}: {e}")
self.tool_error("Use --encoding to set the unicode encoding.")