File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,12 @@ def __init__(
93
93
endpoint .listen (factory )
94
94
95
95
# Attach a listening endpoint
96
- if tls_port :
96
+ if ( tls_certificate or tls_private_key ) :
97
97
if not tls_certificate :
98
- msg = "No TLS certificate provided. Please provide one with --tls-certificate or disable TLS by not providing the --tls-port argument ."
98
+ msg = "No TLS certificate provided. Please provide one with --tls-certificate or disable TLS."
99
99
raise ValueError (msg )
100
100
if not tls_private_key :
101
- msg = "No TLS private key provided. Please provide one with --tls-private-key or disable TLS by not providing the --tls-port argument ."
101
+ msg = "No TLS private key provided. Please provide one with --tls-private-key or disable TLS."
102
102
raise ValueError (msg )
103
103
if self .debug :
104
104
log .msg ("Attaching a listening endpoint (TLS)." )
You can’t perform that action at this time.
0 commit comments