hub: [multicall] cast args of exception to str

fixes: #2381
This commit is contained in:
Yu Ming Zhu 2020-07-20 06:25:52 +00:00 committed by Tomas Kopecek
parent 9c92f5e4be
commit 1b9cd6a95e

View file

@ -341,7 +341,7 @@ class ModXMLRPCRequestHandler(object):
# a circular reference.
exc_type, exc_value = sys.exc_info()[:2]
faultCode = getattr(exc_type, 'faultCode', 1)
faultString = ', '.join(exc_value.args)
faultString = ', '.join([str(arg) for arg in exc_value.args])
trace = traceback.format_exception(*sys.exc_info())
# traceback is not part of the multicall spec,
# but we include it for debugging purposes