--- a/eric6/Utilities/BackgroundClient.py Sun Apr 12 19:07:49 2020 +0200 +++ b/eric6/Utilities/BackgroundClient.py Mon Apr 13 11:30:24 2020 +0200 @@ -80,6 +80,12 @@ @param fn filename for identification (str) @param data return value(s) (any basic datatype) """ + if not isinstance(data, ( + dict, list, tuple, str, int, float, bool, type(None), + )): + # handle sending of objects of unsupported types + data = str(data) + packedData = json.dumps([fx, fn, data]) if sys.version_info[0] >= 3: packedData = bytes(packedData, 'utf-8')