From 34add95a30e612a245aa2986a91244ebcf8ca870 Mon Sep 17 00:00:00 2001 From: gateray <437925289@qq.com> Date: Thu, 12 Oct 2017 15:51:27 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=8F=82=E6=95=B0=E4=BC=A0=E9=80=92=E7=9A=84?= =?UTF-8?q?bug=202.=20=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1=E6=B6=88?= =?UTF-8?q?=E6=81=AF=EF=BC=8Credis=E6=97=A0=E6=B3=95=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=97=B6=E5=AF=BC=E8=87=B4=E6=B6=88=E6=81=AF=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=8F=91=E9=80=81=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 1 + models.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index a8bf2aa..b6a4569 100644 --- a/app.py +++ b/app.py @@ -24,6 +24,7 @@ def getRedisConn(self): self.redisConn = redisConn return self.redisConn except: + print("can not connect to redis.") self.redisConn = None def getSMTPConn(self): try: diff --git a/models.py b/models.py index cd6ee82..15a76df 100644 --- a/models.py +++ b/models.py @@ -79,7 +79,6 @@ def getAccessToken(self): try: accessToken = yield tornado.gen.Task(self.__redis.get, redisKeys["WXQY_ACCESS_TOKEN"]) except Exception as e: - print(str(e)) accessToken = "" if not accessToken: accessToken = yield self.refreshToken()