userpath icon indicating copy to clipboard operation
userpath copied to clipboard

Handle OSErrors when running show path commands

Open jefferyto opened this issue 1 year ago • 0 comments

Bash may not always be installed, for example on OpenWrt, and attempting to call the show path commands for Bash will cause a FileNotFoundError to be raised.

This wraps the subprocess call with a try statement and returns the empty string in the case of an OSError.

jefferyto avatar Nov 10 '23 05:11 jefferyto