subprocess-tee icon indicating copy to clipboard operation
subprocess-tee copied to clipboard

If check=True, empty output becomes None

Open robertschweizer opened this issue 2 years ago • 0 comments

print(subprocess_tee.run(["cat", "/dev/null"]).stdout)
# Prints ""
print(subprocess_tee.run(["cat", "/dev/null"], check=True).stdout)
# Prints "None"

robertschweizer avatar Aug 23 '23 10:08 robertschweizer