panzarino/mlbgame
Voir sur GitHubStop converting HTTPError to ValueError in mlbgame/data.py
Open
#92 ouverte le 27 avr. 2018
enhancementhelp wantedquestion
Métriques du dépôt
- Stars
- (509 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
Converting HTTPError to ValueError loses valuable information about the failure. If the HTTPError itself was allowed to be raised then callers could look at the status code and determine if they want to try the call again (in the case of a 5xx error) or stop trying (4xx error).
Or maybe it could raise new exceptions defined by the mlbgame library? Fatal or Retryable?