Replace bare except: with except Exception: and log errors #23

Closed
opened 2026-02-20 06:49:22 +00:00 by cal · 2 comments
Owner

Description

Seven bare except: pass blocks exist across production code: commands/league/submit_scorecard.py:178, :185, :357, :375, views/transaction_embed.py:383, tasks/transaction_freeze.py:821, :916. Bare except: catches KeyboardInterrupt, SystemExit, and GeneratorExit, which can prevent clean shutdown.

File Locations

  • commands/league/submit_scorecard.py:178
  • commands/league/submit_scorecard.py:185
  • commands/league/submit_scorecard.py:357
  • commands/league/submit_scorecard.py:375
  • views/transaction_embed.py:383
  • tasks/transaction_freeze.py:821
  • tasks/transaction_freeze.py:916

Labels

bug, tech-debt

Priority

medium

## Description Seven bare `except: pass` blocks exist across production code: `commands/league/submit_scorecard.py:178, :185, :357, :375`, `views/transaction_embed.py:383`, `tasks/transaction_freeze.py:821, :916`. Bare `except:` catches `KeyboardInterrupt`, `SystemExit`, and `GeneratorExit`, which can prevent clean shutdown. ## File Locations - `commands/league/submit_scorecard.py:178` - `commands/league/submit_scorecard.py:185` - `commands/league/submit_scorecard.py:357` - `commands/league/submit_scorecard.py:375` - `views/transaction_embed.py:383` - `tasks/transaction_freeze.py:821` - `tasks/transaction_freeze.py:916` ## Labels bug, tech-debt ## Priority medium
Author
Owner

Addressed in commit f4be20a on next-release branch. Will be closed when merged to main.

Addressed in commit f4be20a on `next-release` branch. Will be closed when merged to main.
Author
Owner

Addressed in commit f4be20a on next-release branch. Will be closed when merged to main.

Addressed in commit `f4be20a` on `next-release` branch. Will be closed when merged to main.
cal closed this issue 2026-02-20 20:29:06 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/major-domo-v2#23
No description provided.