---
source: crates/ruff_linter/src/rules/flake8_logging_format/mod.rs
---
G202.py:8:38: G202 Logging statement has redundant `exc_info`
   |
 6 |     pass
 7 | except:
 8 |     logging.exception("Hello World", exc_info=True)
   |                                      ^^^^^^^^^^^^^ G202
 9 | 
10 | try:
   |

G202.py:13:38: G202 Logging statement has redundant `exc_info`
   |
11 |     pass
12 | except:
13 |     logging.exception("Hello World", exc_info=sys.exc_info())
   |                                      ^^^^^^^^^^^^^^^^^^^^^^^ G202
14 | 
15 | # OK
   |

G202.py:28:30: G202 Logging statement has redundant `exc_info`
   |
26 |     pass
27 | except:
28 |     exception("Hello World", exc_info=True)
   |                              ^^^^^^^^^^^^^ G202
29 | 
30 | try:
   |

G202.py:33:30: G202 Logging statement has redundant `exc_info`
   |
31 |     pass
32 | except:
33 |     exception("Hello World", exc_info=sys.exc_info())
   |                              ^^^^^^^^^^^^^^^^^^^^^^^ G202
34 | 
35 | # OK
   |


