I want to check if a subprocess has finished execution successfully or failed. Currently I have come up with a solution but I am not sure if it is correct and reliable. Is i
You can check return code of the process using check_call() method. In case if process returned non-zero value CalledProcessError will be raised.