quantumlib / OpenFermion-Psi4

OpenFermion plugin to interface with the electronic structure package Psi4.
GNU Lesser General Public License v3.0
82 stars 45 forks source link

improve exception handling in run_psi4 #48

Open eendebakpt opened 3 years ago

eendebakpt commented 3 years ago

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:

@bsenjean