From 0a95c2e7484897dfc5626ed305a4c5f911ade713 2013-09-09 21:00:10 From: MinRK Date: 2013-09-09 21:00:10 Subject: [PATCH] Backport PR #4189: always fire LOCAL_IPS.extend(PUBLIC_IPS) was in `else`, but should have been `finally` so it aways runs. Symptom was warnings in parallel.client about `127.0.1.1` not being this machine. backport to 1.1 --- diff --git a/IPython/utils/localinterfaces.py b/IPython/utils/localinterfaces.py index 334e0f4..6418459 100644 --- a/IPython/utils/localinterfaces.py +++ b/IPython/utils/localinterfaces.py @@ -43,7 +43,7 @@ try: PUBLIC_IPS = socket.gethostbyname_ex(socket.gethostname() + '.local')[2] except socket.error: pass -else: +finally: PUBLIC_IPS = uniq_stable(PUBLIC_IPS) LOCAL_IPS.extend(PUBLIC_IPS)