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()