Narrow swallowed exception in get_pitching_peripherals() HTML parsing
#10
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#10
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
creation_helpers.py:808-809—except Exception as e: pass. Should catchKeyErrorspecifically, not all exceptions including network timeouts, encoding errors, or structural changes in page layout.Priority: low | Labels: bug, tech-debt
Fixed in PR #35: #35
Changed
except Exception: pass→except KeyError: passatcreation_helpers.py:536. The try/except wraps a dict-key lookup on a BeautifulSoup element (cell["data-append-csv"]), soKeyErroris the only expected exception. Network and encoding errors will now propagate instead of being silently swallowed.