Z
Z
ZiKyou ZiKyou2020-11-16 10:06:20
Python
ZiKyou ZiKyou, 2020-11-16 10:06:20

Wrote a bot in Telegram, does it crash?

I wrote a bot on a telegram, you write a city to him, and he sends a message with the weather
, only when you write not a city, it just crashes, how to fix the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2020-11-16
@Zoominger

Add a check for "not a city". Google "python exception handling".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question