Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os._exit(1) --> os._exit(0) #2749

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

seidnerj
Copy link

@seidnerj seidnerj commented May 2, 2024

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)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants