summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/SSLServer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/SSLServer.py b/src/lib/SSLServer.py
index 6d053b802..32ab9933b 100644
--- a/src/lib/SSLServer.py
+++ b/src/lib/SSLServer.py
@@ -16,6 +16,7 @@ import logging
import ssl
import threading
import time
+import types
# Compatibility imports
from Bcfg2.Bcfg2Py3k import xmlrpclib, SimpleXMLRPCServer, SocketServer
@@ -47,7 +48,7 @@ class XMLRPCDispatcher (SimpleXMLRPCServer.SimpleXMLRPCDispatcher):
params = (address, ) + params
response = self.instance._dispatch(method, params, self.funcs)
# py3k compatibility
- if type(response) not in [bool, str, list, dict]:
+ if type(response) not in [bool, str, list, dict, types.NoneType]:
response = (response.decode('utf-8'), )
else:
response = (response, )