[kimi-task] Remove bare pass after logged exceptions in src/timmy/tools.py #778

Closed
opened 2026-03-21 19:16:50 +00:00 by Timmy · 0 comments
Owner

Type: Bug fix / code quality

File: src/timmy/tools.py

There are redundant pass statements after exception handling at:

  • Line 450: pass after logger.warning(...) in consult_grok()
  • Line 464: pass after logger.warning(...) in Lightning invoice block
  • Line 943: bare pass in exception handler

The pass is unnecessary when there's already a statement in the except block. For line 943, add a logger.debug() call instead of silently swallowing the error.

Files to change: 1 file src/timmy/tools.py

**Type:** Bug fix / code quality **File:** `src/timmy/tools.py` There are redundant `pass` statements after exception handling at: - Line 450: `pass` after `logger.warning(...)` in `consult_grok()` - Line 464: `pass` after `logger.warning(...)` in Lightning invoice block - Line 943: bare `pass` in exception handler The `pass` is unnecessary when there's already a statement in the except block. For line 943, add a `logger.debug()` call instead of silently swallowing the error. **Files to change:** 1 file `src/timmy/tools.py`
kimi was assigned by Timmy 2026-03-21 19:16:50 +00:00
kimi added this to the Code Hygiene milestone 2026-03-21 20:25:06 +00:00
Timmy closed this issue 2026-03-22 01:46:16 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#778