Skip to content

Commit

Permalink
Update elastic.py
Browse files Browse the repository at this point in the history
Added changed from PR #427 to pass tests
  • Loading branch information
Kuzuto authored Sep 2, 2023
1 parent 64d6ea6 commit 9732a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsedmarc/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9732a50

Please sign in to comment.