I am getting the erro
2019-07-09 11:34:27,834 - telegram.ext.dispatcher - ERROR - An uncaught error wa
s raised while processing the update
Traceback (most recent call last):
File “C:\Users\VIJAYP~1\Desktop\news_bot\myvenv\lib\site-packages\telegram\ext
\dispatcher.py”, line 279, in process_update
handler.handle_update(update, self)
File “C:\Users\VIJAYP~1\Desktop\news_bot\myvenv\lib\site-packages\telegram\ext
\messagehandler.py”, line 169, in handle_update
return self.callback(dispatcher.bot, update, **optional_args)
File “bot.py”, line 50, in reply_text
articles = fetch_news(reply)
File “C:\Users\Vijay Pokhriyal\Desktop\news_bot\utils.py”, line 33, in fetch_n
ews
return client.get_news()[:5]
File “C:\Users\VIJAYP~1\Desktop\news_bot\myvenv\lib\site-packages\gnewsclient
gnewsclient.py”, line 66, in get_news
topic_code = topicMap[process.extractOne(self.topic, self.topics)[0]]
File “C:\Users\VIJAYP~1\Desktop\news_bot\myvenv\lib\site-packages\fuzzywuzzy\p
rocess.py”, line 220, in extractOne
return max(best_list, key=lambda i: i[1])
File “C:\Users\VIJAYP~1\Desktop\news_bot\myvenv\lib\site-packages\fuzzywuzzy\p
rocess.py”, line 78, in extractWithoutOrder
processed_query = processor(query)
File “C:\Users\VIJAYP~1\Desktop\news_bot\myvenv\lib\site-packages\fuzzywuzzy\u
tils.py”, line 95, in full_process
string_out = StringProcessor.replace_non_letters_non_numbers_with_whitespace
(s)
File “C:\Users\VIJAYP~1\Desktop\news_bot\myvenv\lib\site-packages\fuzzywuzzy\s
tring_processing.py”, line 26, in replace_non_letters_non_numbers_with_whitespac
e
return cls.regex.sub(" ", a_string)
TypeError: expected string or bytes-like object
2019-07-09 11:34:27,844 - werkzeug - INFO - 127.0.0.1 - - [09/Jul/2019 11:34:27]
“POST /898262938:AAHIvBjGcSD4HANfZLS67Z7g0dI2ZeB-k3o HTTP/1.1” 200 -
Making a Conversational bot
Please upload your code on GitHub and share it’s link with me so I can look into the problem