Forums

Hi everybody. I need help why Bash Console skips just to empty in my try: and except ValueError...

Hi everybody. I need help why Bash Console skips just to empty in my try: and except ValueError code when I start doing hosting via pythonanywhere... Why is it that as soon as a telegram bot user enters not a number, but a text, the program should inform the user that "error!", but pythonanywhere skips this point, that is, ValueError! Why? If I run the code through local hosting, everything works ok, and when through your site - everything is terrible and the program stops and the bot does not work... Why? And I immediately say all the functions work, I imported the library into the console! Or for try: ; except ValueError, you need an additional should I install a library? Please help me!

Could you clarify what you mean by the Bash console skipping over the try/except? Bash consoles are where you run Bash commands, but try/except are Python syntax.

Perhaps it would clarify things if you posted the code that you are running?