SublimeText / TrailingSpaces

Highlight trailing spaces and delete them in a flash.
MIT License
896 stars 94 forks source link

Catch error if file doesn't exist anymore #126

Closed Pictor13 closed 4 years ago

Pictor13 commented 5 years ago

When file has been moved, doesn't exist anymore (e.g. old cache file) or has not yet been saved, TrailingSpaces will fail because of not checking for the validity of file_name.

Add a simple try/except and report in the status bar a message hinting to check the file path.

rchl commented 4 years ago

I'd say this PR can be closed.

rchl commented 4 years ago

Let's drop it for now. We can revisit if the issue is still present with master's code.