MCPcopy Index your code
hub / github.com/python/cpython / check_returncode

Method check_returncode

Lib/subprocess.py:505–509  ·  view source on GitHub ↗

Raise CalledProcessError if the exit code is non-zero.

(self)

Source from the content-addressed store, hash-verified

503
504
505 def check_returncode(self):
506 """Raise CalledProcessError if the exit code is non-zero."""
507 if self.returncode:
508 raise CalledProcessError(self.returncode, self.args, self.stdout,
509 self.stderr)
510
511
512def run(*popenargs,

Callers 2

test_returncodeMethod · 0.80
test_null_dlsymMethod · 0.80

Calls 1

CalledProcessErrorClass · 0.85

Tested by 2

test_returncodeMethod · 0.64
test_null_dlsymMethod · 0.64