Sep-14-2020, 06:18 AM
Hello all,
Here is the function
The above code is not able to handle this exception "ConnectionResetError: [Errno 104] Connection reset by peer"
Here is the function
def url_check(array): url=array[0] table_name=array[1] try: rc = urllib.request.urlopen(url, timeout=10).read().decode('utf-8') except (HTTPError,URLError) as e: print("URL unreachable") except timeout: print("URL unreachable")I need a way to handle the exception -> "ConnectionResetError: [Errno 104] Connection reset by peer."
The above code is not able to handle this exception "ConnectionResetError: [Errno 104] Connection reset by peer"