def does_dry_run_throw_error(self, cmd): try: out = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) except Exception, e: return (e.returncode > 128) return False