panzarino/mlbgame

Stop converting HTTPError to ValueError in mlbgame/data.py

Open

#92 创建于 2018年4月27日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)Python (509 star) (116 fork)batch import
enhancementhelp wantedquestion

描述

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?

贡献者指南

Stop converting HTTPError to ValueError in mlbgame/data.py · panzarino/mlbgame#92 | Good First Issue