From 7101e86d57b57f655ad263e1ca16740d1e90d4b9 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 21 Oct 2019 15:05:35 +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 9df8617..20af0ae 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({}) 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([]):