You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now when reading a file and there's a UnicodeDecodeError it simply disallows people from opening it
defget_lines(self, file: str|Path) ->list[str]:
try:
withopen(file) asf:
returnf.readlines()
exceptUnicodeDecodeErrorase:
return ["THIS FILE FORMAT IS NOT SUPPORTED BY THE EDITOR"]
file_selector.py
The text was updated successfully, but these errors were encountered:
Right now when reading a file and there's a
UnicodeDecodeError
it simply disallows people from opening itfile_selector.py
The text was updated successfully, but these errors were encountered: