Getting Error after writing fetch_news function

The bot was running fine until I wrote the fetch_news.
Code for :
Code for :

Error :
Traceback (most recent call last):
File “/home/saurabhvemuri/anaconda3/lib/python3.7/site-packages/telegram/ext/”, line 372, in process_update
handler.handle_update(update, self, check, context)
File “/home/saurabhvemuri/anaconda3/lib/python3.7/site-packages/telegram/ext/”, line 120, in handle_update
return self.callback(, update, **optional_args)
File “”, line 43, in reply_text
articles= fetch_news(reply)
File “/home/saurabhvemuri/Desktop/TB/”, line 31, in fetch_news
return client.get_news()
File “/home/saurabhvemuri/anaconda3/lib/python3.7/site-packages/gnewsclient/”, line 67, in get_news
resp = requests.get(topic_url.format(topic_code), params=self.params_dict)
File “/home/saurabhvemuri/anaconda3/lib/python3.7/site-packages/gnewsclient/”, line 48, in params_dict
if len(self.location):
TypeError: object of type ‘NoneType’ has no len()

I’ve sent you the complete code for the chat bot , if you still face any problems do tell me , I’ll look into it.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.