Popen is not raising an exception and so am unable to catch it. Am I missing anything? It prints the error on terminal window as if it succeded. Refer picture. However it lauches properly if valid argument is given.
import subprocesstry: subprocess.Popen(["xdg-open", "invalid"]) print("Launched")except: print("Exception")
Environment: Python 3.10.12 [GCC 11.4.0], Ubuntu 22.04.4 LTS