41 try:
42 txt = re.sub(word, good_words[bad_words.index(word)], txt, flags=re.IGNORECASE)
43 except Exception as e:
44 LOGS.warn(e)45
46 if message.caption:
47 if txt != message.caption:
41 try:
42 txt = re.sub(word, good_words[bad_words.index(word)], txt, flags=re.IGNORECASE)
43 except Exception as e:
44 LOGS.warn(e)45
46 if message.caption:
47 if txt != message.caption:
The method is marked as deprecated and will be removed in a future version of Python. Consider looking for an alternative in the documentation.