From 9ddf18f3ee7a91760f582596c9ec0d984e31f84e Mon Sep 17 00:00:00 2001 From: Thanh Son Phung Date: Fri, 21 Jul 2023 12:32:31 -0400 Subject: [PATCH] fix flake --- parsl/addresses.py | 3 ++- parsl/executors/taskvine/executor.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) 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