How to solve the 10054 error
问题 I'm using an app provided by some website to collect some data from the website periodly, say, 30s a time. The returned response is then recorded in database. I use the requests modular by import requests and write codes to catch Exception. The codes for the main function are as following: def get_response(self): try: response = requests.get(self.request_url) if response.status_code == 200: return response.json() except Exception as e: msg = "Exception is:\n %s \n" % e print msg The above