Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve exception handling in run_psi4 #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eendebakpt
Copy link

@eendebakpt eendebakpt commented Aug 26, 2021

When Psi4 is not installed an exception occurs because the file psi4 cannot be found. Cleanup of the process with process.kill() then generates another exception, because the variable process was not created.

This PR:

  • Adds the generated exception to the warning message
  • Wraps the process.kill() in a try-except

@bsenjean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant