I got a message saying script xyz.py returned exit code 0. What does this mean?
script xyz.py returned exit code 0
What do the exit codes in Python mean? How many are there? Which ones are important?
You're looking for calls to sys.exit() in the script. The argument to that method is returned to the environment as the exit code.
sys.exit()
It's fairly likely that the script is never calling the exit method, and that 0 is the default exit code.
2.1m questions
2.1m answers
60 comments
57.0k users