intellij-community
intellij-community copied to clipboard
os._exit(1) --> os._exit(0)
Currently, exiting with a non-zero value results in an error in PyCharm's console when attaching to a process (see below), this fixes this issue.
... File ".../add_code_to_python_process.py", line 534, in run_python_code_mac subprocess.check_call(' '.join(cmd), shell=True, env=env) File ".../python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'lldb --no-lldbinit --script-language Python -o ... -o 'script import os; os._exit(1)'' returned non-zero exit status 1.
(tested on macOS with PyCharm Build #PY-241.14494.241)