有驚無險

Idiom

 * 1) to have had only frightening moments but no dangers; to be successful at the end though having encountered obstacles