diff --git a/wallamanta/helpers.py b/wallamanta/helpers.py index f4e89eb..b5b9bb4 100644 --- a/wallamanta/helpers.py +++ b/wallamanta/helpers.py @@ -3,5 +3,8 @@ TELEGRAM_ESCAPE_CHARACTERS = ['_', '*', '[', ']', '(', ')', '~', '>', '#', '+', def telegram_escape_characters(text): for character in TELEGRAM_ESCAPE_CHARACTERS: - text = text.replace(character, f'\{character}') + try: + text = text.replace(character, f'\{character}') + except: + pass return text \ No newline at end of file