From 9732a5048eb4190e5461cde0236b4383a2b5e3e8 Mon Sep 17 00:00:00 2001 From: Lennart Friberg Date: Sat, 2 Sep 2023 10:33:06 +0200 Subject: [PATCH] Update elastic.py Added changed from PR #427 to pass tests --- parsedmarc/elastic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsedmarc/elastic.py b/parsedmarc/elastic.py index bfc29258..5e0652cd 100644 --- a/parsedmarc/elastic.py +++ b/parsedmarc/elastic.py @@ -181,7 +181,7 @@ def set_hosts(hosts, use_ssl=False, ssl_cert_path=None, password (str): The password to use for authentication timeout (float): Timeout in seconds """ - if type(hosts) != list: + if not isinstance(hosts, list): hosts = [hosts] conn_params = { "hosts": hosts,