подключаюсь к аккаунту используя прокси, но если прокси невалид, то pyrogram пытается переподключиться к аккаунту бесконечное количество раз, пока я не завершу скрипт, мне нужно как то отследить неудачное подключение и стопнуть клиент, но суть в том, что неудачное подключение это не ошибка и в except оно не уходит.
INFO:pyrogram.connection.transport.tcp.tcp:Using proxy jfkfjfjfjffj
INFO:pyrogram.connection.connection:Connecting...
WARNING:pyrogram.connection.connection:Unable to connect due to network issues: Error connecting to HTTP proxy jfkfjfjfjffj:2988: [Errno 11001] getaddrinfo failed
INFO:pyrogram.connection.transport.tcp.tcp:Using proxy jfkfjfjfjffj
INFO:pyrogram.connection.connection:Connecting...
WARNING:pyrogram.connection.connection:Unable to connect due to network issues: Error connecting to HTTP proxy jfkfjfjfjffj:2988: [Errno 11001] getaddrinfo failed
INFO:pyrogram.connection.transport.tcp.tcp:Using proxy jfkfjfjfjffj
INFO:pyrogram.connection.connection:Connecting...
WARNING:pyrogram.connection.connection:Unable to connect due to network issues: Error connecting to HTTP proxy jfkfjfjfjffj:2988: [Errno 11001] getaddrinfo failed
WARNING:pyrogram.connection.connection:Connection failed! Trying again...
INFO:pyrogram.connection.connection:Disconnected
INFO:pyrogram.session.session:Session stopped
INFO:pyrogram.connection.transport.tcp.tcp:Using proxy jfkfjfjfjffj
INFO:pyrogram.connection.connection:Connecting...
WARNING:pyrogram.connection.connection:Unable to connect due to network issues: Error connecting to HTTP proxy jfkfjfjfjffj:2988: [Errno 11001] getaddrinfo failed
INFO:pyrogram.connection.transport.tcp.tcp:Using proxy jfkfjfjfjffj
INFO:pyrogram.connection.connection:Connecting...
WARNING:pyrogram.connection.connection:Unable to connect due to network issues: Error connecting to HTTP proxy jfkfjfjfjffj:2988: [Errno 11001] getaddrinfo failed
INFO:pyrogram.connection.transport.tcp.tcp:Using proxy jfkfjfjfjffj
INFO:pyrogram.connection.connection:Connecting...
INFO:aiogram.dispatcher.dispatcher:Stop polling...