How to catch exception from a child process in the parent process. The child process is created using Python's subprocess.Popen() like so:
division_by_zero.py
print(1/0)
parent.py
import subprocess
subprocess.Popen(['python', 'division_by_zero.py'])
The child process raises an exception
ZeroDivisionError: integer division or modulo by zero
. How to catch that in parent process?