jaredsampson / pymolprobity

A MolProbity-style visualization plugin for PyMOL
MIT License
11 stars 3 forks source link

Usability: Catch exception and provide feedback when called executable is not found. #3

Closed jaredsampson closed 7 years ago

jaredsampson commented 7 years ago

H/T @speleo3.

Not having the Molprobity executables set up correctly in the PATH results in a not-so-useful subprocess python error and traceback. These should be caught and reported gracefully (e.g. "Error: 'reduce' executable not found in $PATH"). Catching OSError should do the trick.

This fix can probably go in main.run_command().