May-13-2019, 02:56 PM
It would be better if you added
stderr=subprocess.PIPE
too, because you could print the error message err
when the command fails.