From 9aba83f1b8e212cfa20bed42197384d9ae2ac221 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 21 Oct 2019 14:50:37 +0800 Subject: [PATCH] add isinstance check for context --- ahserver/baseProcessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index 7bb7dc4..9df8617 100644 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -62,7 +62,7 @@ class BaseProcessor: await self.datahandle(request) if self.retResponse is not None: return self.retResponse - if type(self.content) == type({}): + if type(self.content) == type({}) or isinstance(self,DictObject): self.content = json.dumps(self.content, indent=4) if type(self.content) == type([]):