add isinstance check for context

This commit is contained in:
yumoqing 2019-10-21 15:05:35 +08:00
parent 9aba83f1b8
commit 7101e86d57

View File

@ -62,7 +62,7 @@ class BaseProcessor:
await self.datahandle(request)
if self.retResponse is not None:
return self.retResponse
if type(self.content) == type({}) or isinstance(self,DictObject):
if type(self.content) == type({}) or isinstance(self.content,DictObject):
self.content = json.dumps(self.content,
indent=4)
if type(self.content) == type([]):