HHousen / lecture2notes

Subprocess run with ignored non-zero exit PYL-W1510
Bug risk
Minor
3 years ago4 years old
Using subprocess.run without explicitly set check is not recommended.
 46        """
 47
 48        def run_command(command_array):
 49            completed_command = subprocess.run( 50                command_array, stdout=subprocess.PIPE, stderr=subprocess.PIPE
 51            )
 52            output = completed_command.stdout.decode("utf-8")