Iceloof / GoogleNews

Script for GoogleNews
https://pypi.org/project/GoogleNews/
MIT License
314 stars 88 forks source link

'NoneType' object is not iterable #108

Closed umertahir13 closed 1 year ago

umertahir13 commented 1 year ago

I used this library but when I could not find the page it prints nonetype object is not iterable but does not return exception in return which makes it impossible to identify on which page it will print the nonetype exception. Please return the exception so, in the script, this exception can be caught and this will help in identifying the page number for each search.

HurinHu commented 1 year ago

I used this library but when I could not find the page it prints nonetype object is not iterable but does not return exception in return which makes it impossible to identify on which page it will print the nonetype exception. Please return the exception so, in the script, this exception can be caught and this will help in identifying the page number for each search.

Will added it in the next release.

HurinHu commented 1 year ago

The new release version is allowed to throw exception if you set googlenews.enableException(True)