The Python socket library has an elegant method of handing these errors via the socket.error ... then this will throw a connection timeout error as follows:.
確定! 回上一頁