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

ss

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag 4 лет назад
Родитель
Сommit
33eb80e1f7
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      jianye_report.py

+ 1 - 0
jianye_report.py

@@ -284,6 +284,7 @@ class JianYeReport(object):
                             send_mail_log.append([mail[5], mail[2], mail[3], -1, 'fail'])
                 except Exception as e:
                     print(str(e))
+                    message['error1'] = str(e)
                     send_mail_log.append([mail[5], mail[2], mail[3], -1, str(e)])
             self.db.add_some(send_mail_log, Sql.sql_12)
         except Exception as e: