Catching all socket errors in _get_my_ip, since any socket error is likely enough to cause a failure in detection.
This commit is contained in:
		| @@ -208,7 +208,7 @@ def _get_my_ip(): | ||||
|         (addr, port) = csock.getsockname() | ||||
|         csock.close() | ||||
|         return addr | ||||
|     except socket.gaierror as ex: | ||||
|     except socket.error as ex: | ||||
|         return "127.0.0.1" | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ryan Lane
					Ryan Lane