add isinstance check for context
This commit is contained in:
parent
9aba83f1b8
commit
7101e86d57
@ -62,7 +62,7 @@ class BaseProcessor:
|
|||||||
await self.datahandle(request)
|
await self.datahandle(request)
|
||||||
if self.retResponse is not None:
|
if self.retResponse is not None:
|
||||||
return self.retResponse
|
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,
|
self.content = json.dumps(self.content,
|
||||||
indent=4)
|
indent=4)
|
||||||
if type(self.content) == type([]):
|
if type(self.content) == type([]):
|
||||||
|
Loading…
Reference in New Issue
Block a user