fix xmlrpc encoding error

This commit is contained in:
Tomas Kopecek 2019-01-29 15:42:44 +01:00 committed by Mike McLean
parent 5216c54572
commit ca86a8fa78
2 changed files with 9 additions and 1 deletions

View file

@ -75,7 +75,7 @@ def dumps(params, methodname=None, methodresponse=None, encoding=None,
if isinstance(params, Fault):
methodresponse = 1
elif not isinstance(params, tuple):
raise TypeError('params must be a tuple of Fault instance')
raise TypeError('params must be a tuple or Fault instance')
elif methodresponse and len(params) != 1:
raise ValueError('response tuple must be a singleton')