From b1cf7464abf4ad44a14e1a35770a1bcb9e6b3ecd Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 7 Nov 2020 13:31:09 +0800 Subject: [PATCH] bugfix --- ahserver/baseProcessor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index 6490406..1836a55 100644 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -72,8 +72,9 @@ class BaseProcessor: self.content = json.dumps(self.content, indent=4) elif isinstance(self.content,DictObject): - self.content = json.dumps(self.content, - indent=4) + mydict = self.content.to_dict() + print('mydict=',mydict,type(mydict)) + self.content = json.dumps(mydict, indent=4) elif type(self.content) == type([]): self.content = json.dumps(self.content, indent=4)