Idiom
get someone out of a holedig/get (someone) out of a hole
British & Australian, informal to help someone who is in a difficult situation.She got me out of a hole by lending me the money for the flight back to New York.I managed to dig myself out of a hole by pretending I had only been joking.
(often reflexive)