renyupeng 3 years ago
parent
commit
f4f42e5862
1 changed files with 4 additions and 2 deletions
  1. 4 2
      OuterDataCompareInnerData/kwai/AudienceReportMonitor.py

+ 4 - 2
OuterDataCompareInnerData/kwai/AudienceReportMonitor.py

@@ -44,8 +44,10 @@ class AudienceReportMonitor:
 
                 except Exception as e:
                     logging.error(e)
-
-            SendEmail.mail(messageList)
+            if messageList == '':
+                logging.info("数据正常")
+            else:
+                SendEmail.mail(messageList)
         except Exception as e:
             logging.error(e)