libushang hai 4 meses
pai
achega
a9bcc77741
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      routers/api/eventManagement/event.py

+ 3 - 0
routers/api/eventManagement/event.py

@@ -925,6 +925,9 @@ async def send_emergency_plan_task_by_yzy(
         _user_id = 0
         user_name = ''
         contact_row = db.query(EmergencyContactInfo).filter(and_(EmergencyContactInfo.del_flag == "0", EmergencyContactInfo.unit_id == dept_id)).first()
+        if contact_row is None:
+            continue
+        
         yzy_account = contact_row.yue_gov_ease_phone
         nick_name = contact_row.contact_name