update: handle more exceptions
update: handle more exceptions

Closes #42558.

Signed-off-by: Xu Cheng <9a05244150b861e40c78843b801eed71bca54eac@me.com>

jack-and-rozz/linuxbrew,jack-and-rozz/linuxbrew,LeonB/linuxbrew,davydden/linuxbrew,sjackman/linuxbrew,romejoe/linuxbrew,jwillemsen/linuxbrew,jack-and-rozz/linuxbrew,Homebrew/linuxbrew,DoomHammer/linuxbrew,tjhei/linuxbrew,brevilo/linuxbrew,gcstang/linuxbrew,outcoldman/linuxbrew,jwillemsen/linuxbrew,Homebrew/linuxbrew,bukzor/linuxbrew,arcivanov/linuxbrew,LeonB/linuxbrew,DoomHammer/linuxbrew,saketkc/linuxbrew,romejoe/linuxbrew,Angeldude/linuxbrew,saketkc/linuxbrew,sjackman/linuxbrew,SuperNEMO-DBD/cadfaelbrew,lvicentesanchez/linuxbrew,princeofdarkness76/linuxbrew,arcivanov/linuxbrew,gcstang/linuxbrew,dholm/linuxbrew,ebouaziz/linuxbrew,drbenmorgan/linuxbrew,davydden/linuxbrew,gcstang/linuxbrew,reelsense/linuxbrew,princeofdarkness76/linuxbrew,gnubila-france/linuxbrew,Angeldude/linuxbrew,danabrand/linuxbrew,jbaum98/linuxbrew,romejoe/linuxbrew,IsmailM/linuxbrew,davydden/linuxbrew,SuperNEMO-DBD/cadfaelbrew,lvicentesanchez/linuxbrew,ebouaziz/linuxbrew,jbaum98/linuxbrew,drbenmorgan/linuxbrew,Angeldude/linuxbrew,ebouaziz/linuxbrew,IsmailM/linuxbrew,tjhei/linuxbrew,bukzor/linuxbrew,Homebrew/linuxbrew,gnubila-france/linuxbrew,Linuxbrew/linuxbrew,Homebrew/linuxbrew,dholm/linuxbrew,SuperNEMO-DBD/cadfaelbrew,LeonB/linuxbrew,brevilo/linuxbrew,jbaum98/linuxbrew,Linuxbrew/linuxbrew,danabrand/linuxbrew,Linuxbrew/linuxbrew,drbenmorgan/linuxbrew,IsmailM/linuxbrew,drbenmorgan/linuxbrew,outcoldman/linuxbrew,arcivanov/linuxbrew,outcoldman/linuxbrew,brevilo/linuxbrew,princeofdarkness76/linuxbrew,saketkc/linuxbrew,saketkc/linuxbrew,lvicentesanchez/linuxbrew,danabrand/linuxbrew,reelsense/linuxbrew,danabrand/linuxbrew,reelsense/linuxbrew,bukzor/linuxbrew,jwillemsen/linuxbrew,Linuxbrew/linuxbrew,SuperNEMO-DBD/cadfaelbrew,gnubila-france/linuxbrew,sjackman/linuxbrew,IsmailM/linuxbrew,davydden/linuxbrew,sjackman/linuxbrew,jbaum98/linuxbrew,bukzor/linuxbrew,lvicentesanchez/linuxbrew,gnubila-france/linuxbrew,ebouaziz/linuxbrew,reelsense/linuxbrew,DoomHammer/linuxbrew,tjhei/linuxbrew,DoomHammer/linuxbrew,dholm/linuxbrew,Angeldude/linuxbrew