From ecb2220afd68e1d13c9af476265d008c2d92354b Mon Sep 17 00:00:00 2001 From: Oz Linden <oz@lindenlab.com> Date: Mon, 18 Nov 2013 12:12:31 -0500 Subject: add handler for socket.error to fix OPEN-196 --- indra/lib/python/indra/base/lluuid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/lib/python') diff --git a/indra/lib/python/indra/base/lluuid.py b/indra/lib/python/indra/base/lluuid.py index 369ae4e92f..7413ffe10d 100755 --- a/indra/lib/python/indra/base/lluuid.py +++ b/indra/lib/python/indra/base/lluuid.py @@ -72,7 +72,7 @@ class UUID(object): ip = '' try: ip = socket.gethostbyname(socket.gethostname()) - except(socket.gaierror): + except(socket.gaierror, socket.error): # no ip address, so just default to somewhere in 10.x.x.x ip = '10' for i in range(3): -- cgit v1.2.3