Learning-Python-Team / Learning-Python-Team/UnTruth
Handle Exceptions
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Python
- 星标
- 3
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
描述
The program returns lines of errors when websites that aren't supported by newspaper library is entered as news_url
AttributeError is thrown when websites like 'google.com' are entered in the url. Its better we give a more reasonable error to the user by placing that code inside a try except block
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从处理 news_url 输入的代码开始,使用 google.com 之类的不受支持的网站重现该故障。跟踪 AttributeError 并添加处理逻辑,使不受支持的网站向用户显示合理的错误,而不是原始错误行;确认受支持网站的路径仍然正常工作。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100