Похожие чаты

How can I make the script continue working after this

error and not stop? telethon.errors.rpcbaseerrors.TimedOutError: RPCError -503: Timedout (caused by GetUsersRequest)

6 ответов

54 просмотра

import telethon.errors try: # code here except telethon.errors.rpcbaseerrors: print("error") # you should sleep if it requires

Блинная-Вспышка Автор вопроса
Праздничный Пеликан
import telethon.errors try: # code here except...

I don’t understand, does the script stop after this error or not? telethon.errors.rpcbaseerrors.TimedOutError

Блинная Вспышка
I don’t understand, does the script stop after thi...

Not if you handled the error well, try and except prevent the code from crashing if this is what you want.

Блинная-Вспышка Автор вопроса
Праздничный Пеликан
Not if you handled the error well, try and except ...

by default without the try block, does this error stop the script?

the script can and will work after this error, but it will not work correctly. he can send the same messages repeatedly or send incomplete messages. for example, the text will send, but the picture will not. I have messages that consist of 3 messages, text + media + sticker it is better to restart the project.

Неугомонный Карась
the script can and will work after this error, but...

something like this. when the 503 error appears, the sticker will be sent, but the picture and text will not. if you try to call the message again. perhaps it will be sent in full.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Мелодичный Сырник
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Фетровый Лингвист
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Настойчивый Кварк
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
Льдистая Лужица
2
30500 за редактор? )
Замшевый Алхимик
47
а через ESC-код ?
Виноградная Притча
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Звенящий Циферблат
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Туманный Ларец
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Длинный Минерал
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Тягучая Ракушка
11
Карта сайта