---
source: crates/ruff/src/rules/flake8_blind_except/mod.rs
---
BLE.py:25:8: BLE001 Do not catch blind exception: `BaseException`
   |
25 | except Exception as e:
26 |     raise e
27 | except BaseException:
   |        ^^^^^^^^^^^^^ BLE001
28 |     pass
   |

BLE.py:31:8: BLE001 Do not catch blind exception: `Exception`
   |
31 | try:
32 |     pass
33 | except Exception:
   |        ^^^^^^^^^ BLE001
34 |     pass
35 | finally:
   |

BLE.py:42:8: BLE001 Do not catch blind exception: `Exception`
   |
42 | try:
43 |     pass
44 | except Exception as e:
   |        ^^^^^^^^^ BLE001
45 |     try:
46 |         raise e
   |

BLE.py:45:12: BLE001 Do not catch blind exception: `BaseException`
   |
45 |     try:
46 |         raise e
47 |     except BaseException:
   |            ^^^^^^^^^^^^^ BLE001
48 |         pass
   |

BLE.py:54:8: BLE001 Do not catch blind exception: `Exception`
   |
54 |     except BaseException as e:
55 |         raise e
56 | except Exception:
   |        ^^^^^^^^^ BLE001
57 |     pass
   |

BLE.py:60:8: BLE001 Do not catch blind exception: `Exception`
   |
60 | try:
61 |     pass
62 | except Exception as e:
   |        ^^^^^^^^^ BLE001
63 |     raise bad
64 | except BaseException:
   |

BLE.py:62:8: BLE001 Do not catch blind exception: `BaseException`
   |
62 | except Exception as e:
63 |     raise bad
64 | except BaseException:
   |        ^^^^^^^^^^^^^ BLE001
65 |     pass
   |

BLE.py:69:8: BLE001 Do not catch blind exception: `Exception`
   |
69 | try:
70 |     pass
71 | except Exception:
   |        ^^^^^^^^^ BLE001
72 |     logging.error("...")
   |

BLE.py:75:8: BLE001 Do not catch blind exception: `Exception`
   |
75 | try:
76 |     pass
77 | except Exception:
   |        ^^^^^^^^^ BLE001
78 |     logging.error("...", exc_info=False)
   |

BLE.py:81:8: BLE001 Do not catch blind exception: `Exception`
   |
81 | try:
82 |     pass
83 | except Exception:
   |        ^^^^^^^^^ BLE001
84 |     logging.error("...", exc_info=None)
   |


