BoKKeR / RSS-to-Telegram-Bot

RSS to Telegram python script
http://t.me/rss_t_bot
GNU General Public License v3.0
260 stars 102 forks source link

Syntax Error #7

Closed OasisFootbabll closed 4 years ago

OasisFootbabll commented 4 years ago

Hi All ,

I'm trying to run the bot with the command below :

python telegramRSSbot.py

This is what come up :

File "telegramRSSbot.py", line 100 SyntaxError: Non-ASCII character '\xe2' in file telegramRSSbot.py on line 100, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

If someone can help

Thanks in Advance :

BoKKeR commented 4 years ago

I removed the smileys from the output as they were throwing encoding errors. Give it a try now

OasisFootbabll commented 4 years ago

Hi BoKKer ,

Can you check now ?

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/telegram/ext/dispatcher.py", line 270, in process_update handler.handle_update(update, self) File "/usr/local/lib/python2.7/dist-packages/telegram/ext/commandhandler.py", line 171, in handle_update return self.callback(dispatcher.bot, update, **optional_args) File "telegramRSSbot.py", line 65, in cmd_rss_add args[1] IndexError: list index out of range