Skip to content

Handle Exceptions #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
asiffarhankhan opened this issue Sep 4, 2019 · 1 comment
Open

Handle Exceptions #17

asiffarhankhan opened this issue Sep 4, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@asiffarhankhan
Copy link
Collaborator

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

@asiffarhankhan asiffarhankhan added the enhancement New feature or request label Sep 4, 2019
@mandjevant
Copy link
Collaborator

mandjevant commented Sep 4, 2019

We could, for now, simply catch the exception. Since the fake news detector is going to have more modules and functions and a separate mainframe, it might be best to make our own exceptions at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants