Fix to let TCP server run without SSL installed.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
Tom Wilkie committed 2007-03-28 12:38:13 +01:00
1 parent a712e471e2
commit 7a45bd6202
1 file changed
+3 -4
+3 -4
View File
@@ -126,11 +126,10 @@ class XMLRPCServer:
'all interfaces, port ',
self.port, authmsg)
if not ssl_enabled:
raise ValueError("pyOpenSSL not installed. "
"Unable to start HTTPS XML-RPC server")
if using_ssl:
if not ssl_enabled:
raise ValueError("pyOpenSSL not installed. "
"Unable to start HTTPS XML-RPC server")
self.server = SSLXMLRPCServer(
(self.host, self.port),
self.hosts_allowed,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.