Commit 0436208
committed
libtmux(fix[logging]): remove exc_info from catch-log-reraise
why: exc_info=True duplicates the traceback when followed by raise.
The extra={"tmux_cmd": ...} satisfies the AGENTS.md carve-out for
adding context that would otherwise be lost.
what:
- Remove exc_info=True from logger.error in tmux_cmd.__init__
- Add noqa: TRY400 since error() without exc_info in except is intentional1 parent 03fe61d commit 0436208
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | | - | |
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
| |||
0 commit comments