G
G
gachkydxvbgd2018-05-25 00:42:24
Python
gachkydxvbgd, 2018-05-25 00:42:24

How to make it not stop execution on error?

I started learning python, I decided to make a proxy checker through requests, and when a dead proxy comes across, it gives the following error Error Connecting: SOCKSHTTPSConnectionPool and execution stops

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2018-05-25
@gachkydxvbgd

try except
https://pythonworld.ru/tipy-dannyx-v-python/isklyu...
docs.python-requests.org/en/master/_modules/reques...

try:
    1/0
except Exception:
    print('произошла ошибка, ну и пофиг')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question