summaryrefslogtreecommitdiff
path: root/indra/lib
diff options
context:
space:
mode:
Diffstat (limited to 'indra/lib')
-rw-r--r--indra/lib/python/uuid.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/lib/python/uuid.py b/indra/lib/python/uuid.py
index 75d189ff7e..48dac84377 100644
--- a/indra/lib/python/uuid.py
+++ b/indra/lib/python/uuid.py
@@ -277,7 +277,11 @@ def _ifconfig_getnode():
import os
for dir in ['', '/sbin/', '/usr/sbin']:
try:
- pipe = os.popen(os.path.join(dir, 'ifconfig'))
+ path = os.path.join(dir, 'ifconfig')
+ if os.path.exists(path):
+ pipe = os.popen(path)
+ else:
+ continue
except IOError:
continue
for line in pipe: