T
T
typical_user102020-08-23 16:00:41
Python
typical_user10, 2020-08-23 16:00:41

How to fix ls error?

The situation is this. Suppose a participant writes a help command to the bot in the PM. After that, the bot displays an error in the console. How can I prevent this error from being printed to the console? Tell me please.

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-08-23
@typical_user10

You can't imagine better

try:
    #код
except:
    pass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question