liqian 2 năm trước cách đây
mục cha
commit
9f5b428b87
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      rule_rank_h_by_24h.py

+ 3 - 1
rule_rank_h_by_24h.py

@@ -222,7 +222,9 @@ def video_rank_h(df, now_date, now_h, rule_key, param, data_key, notify_backend)
         log_.info('json_data count = {}'.format(len(json_data)))
         result = request_post(request_url=config_.NOTIFY_BACKEND_updateFallBackVideoList_URL,
                               request_data={'videos': json_data})
-        if result['code'] == 0:
+        if result is None:
+            log_.error('notify backend updateFallBackVideoList fail!')
+        elif result['code'] == 0:
             log_.info('notify backend updateFallBackVideoList success!')
         else:
             log_.error('notify backend updateFallBackVideoList fail!')