Просмотр исходного кода

按小时补充创意添加else模块,记录该时点不需要补充

liyuyi@c-top.com.cn 4 лет назад
Родитель
Сommit
792780c495
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      ai_time_task_creative_handler.py

+ 5 - 0
ai_time_task_creative_handler.py

@@ -661,6 +661,11 @@ class AiUpCreativeByHour(tornado.web.RequestHandler):
                     logger.info("account_id=%s, 按小时补充创意: 没有成功获取到视频!" % account_id)
                     self.write(json.dumps({"message": "account_id=%s, 按小时补充创意: 没有成功获取到视频!" % account_id}))
                     self.flush()
+            else:
+                logger.info("account_id=%s, 按小时补充创意: 不需要补充!" % account_id)
+                self.write(json.dumps({"message": "account_id=%s, 按小时补充创意: 不需要补充!" % account_id}))
+                self.flush()
+
         except Exception:
             logger.error("account_id = %s, traceback is %s" % (account_id, traceback.format_exc()))
             self.write(json.dumps({"account_id": account_id, "message": traceback.format_exc(), "code": -1}))