Skip to content

Commit

Permalink
Update exception message in kazoo/handlers/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Widman <jeff@jeffwidman.com>
  • Loading branch information
jessesightler-redhat and jeffwidman authored Jul 5, 2024
1 parent 05d5b27 commit 2dc4ff8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kazoo/handlers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ def create_tcp_connection(
context.load_default_certs(ssl.Purpose.SERVER_AUTH)
if check_hostname and not verify_certs:
raise ValueError(
"Error, if check_hostname is specified "
+ "verify_certs must be False"
"verify_certs must be False when check_hostname is specified"
)
# We must set check_hostname to False prior to setting
# verify_mode to CERT_NONE.
Expand Down

0 comments on commit 2dc4ff8

Please sign in to comment.