Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix crash in sha encode of previews #139
When opening certain filetypes, for which Ranger can't render a preview
In the example above, I'm doing something ugly (navigating procfs for a PID with ranger), but it still shouldn't be crashing.
This solves that by checking at the beginning of get_preview() that