diff --git a/parsl/addresses.py b/parsl/addresses.py index db9ad5701b..783aad4e97 100644 --- a/parsl/addresses.py +++ b/parsl/addresses.py @@ -122,6 +122,7 @@ def get_all_addresses() -> Set[str]: return s_addresses + def get_any_address() -> str: """ Uses a combination of methods to find any address of the local machine. @@ -146,7 +147,7 @@ def get_any_address() -> str: return addr except Exception: logger.exception("Ignoring an address finder exception") - + if addr == '': raise Exception('Cannot find address of the local machine.') return addr diff --git a/parsl/executors/taskvine/executor.py b/parsl/executors/taskvine/executor.py index e7339f0f79..35c86defd8 100644 --- a/parsl/executors/taskvine/executor.py +++ b/parsl/executors/taskvine/executor.py @@ -11,7 +11,6 @@ import hashlib import subprocess import os -import socket import time import pickle import queue