Handle Exceptions
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start at the code that processes the news_url input and reproduce the failure with an unsupported site such as google.com. Trace the AttributeError and add handling so unsupported websites produce a reasonable user-facing error instead of raw error lines; confirm the supported-site path still works.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 3
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Learning-Python-Team/UnTruth
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
good first issue
Difficulty 5/5 Over a week Newbie friendliness 25/100
Learning-Python-Team/UnTruth#12 · 3 comments ·
-
good first issue
Learning-Python-Team/UnTruth#10 · 6 comments · 1 assignee ·
All issues in Learning-Python-Team/UnTruth
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·