paper-dynasty-database/app/routers_v2
Cal Corum b31c405b71 fix: replace broad except Exception blocks with DoesNotExist (#15)
Replace 71 broad `except Exception` blocks in 19 router files with the
specific `peewee.DoesNotExist` exception. GET endpoints that call
`Model.get_by_id()` now only catch the expected DoesNotExist error,
allowing real DB failures (connection errors, etc.) to propagate as
500s rather than being masked as 404s.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 19:05:16 -06:00
..
__init__.py Initial Commit with /current 2023-09-13 14:44:26 -05:00
admin.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
awards.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
batstats.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
battingcardratings.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
battingcards.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
cardpositions.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
cards.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
cardsets.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
current.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
decisions.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
events.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
gamerewards.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
gauntletrewards.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
gauntletruns.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
mlbplayers.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
notifications.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
packs.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
packtypes.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
paperdex.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
pitchingcardratings.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
pitchingcards.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
pitstats.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
players.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
rarity.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
results.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
rewards.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00
scouting.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
stratgame.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
stratplays.py fix: remove unused imports in PR #33 files 2026-03-03 15:52:56 -06:00
teams.py fix: replace broad except Exception blocks with DoesNotExist (#15) 2026-03-03 19:05:16 -06:00