Commits

Jason R. Coombs committed 8e8b093

Fixed handling of exceptions in py26compat.subprocess.check_output

Comments (0)

Files changed (1)

py26compat/subprocess.py

 			cmd = kwargs.get("args")
 			if cmd is None:
 				cmd = popenargs[0]
-			raise subprocess.CalledProcessError(retcode, cmd, output=output)
+			err = subprocess.CalledProcessError(retcode, cmd)
+			err.output = output
+			raise err
 		return output