Handle Exceptions
还没有人认领这个 Issue。
评估
调研方向
从处理 news_url 输入的代码开始,使用 google.com 之类的不受支持的网站重现该故障。跟踪 AttributeError 并添加处理逻辑,使不受支持的网站向用户显示合理的错误,而不是原始错误行;确认受支持网站的路径仍然正常工作。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 3
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Learning-Python-Team/UnTruth 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 20/100
-
good first issue
难度 5/5 一周以上 新手友好度 25/100
Learning-Python-Team/UnTruth#12 · 3 条评论 ·
-
good first issue
Learning-Python-Team/UnTruth#10 · 6 条评论 · 已指派 1 人 ·
查看 Learning-Python-Team/UnTruth 的全部 Issue
相似的 Issue
-
link-check link-check:sphinx-theme
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
难度 2/5 1-3 小时 新手友好度 88/100
OpenHands/extensions#626 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
CSCfi/sd-search-api#39 ·
-
难度 1/5 1 小时以内 新手友好度 90/100