Api Search in Python - how to get bad return code

I'm using the search API running from Python to collect some documents. The request goes well as long as the connection is OK.
However, when the connection is timeout, the Python script crashes and i can't used any return code !
How can i do to trap the Api disconnection ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.