Handle Exceptions
Opened this issue · 1 comments
asiffarhankhan commented
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
mandjevant commented
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.