bugbear21.4.3

B001 Do not use _, it also catches unexpected events like memory errors, interrupts, system exit, and so on

Do not use {}, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer except Exception:. If you're sure what you're doing, be explicit and write except BaseException:.