Skip to content

Commit 59ea821

Browse files
author
zaihuaji
committed
PgLOG.SUCCESS
1 parent f0e913d commit 59ea821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rda_python_common/PgDBI.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,8 +1855,8 @@ def build_customized_email(table, field, condition, subject, logact = 0):
18551855
if receiver.find(sender) < 0: PgLOG.add_carbon_copy(sender, 1)
18561856
cc = PgLOG.PGLOG['CCDADDR']
18571857
if not subject: subject = "Message from {}-{}".format(PgLOG.PGLOG['HOSTNAME'], PgLOG.get_command())
1858-
estat = send_python_email(subject, receiver, msg, sender, cc, logact)
1859-
if estat != SUCCESS:
1858+
estat = PgLOG.send_python_email(subject, receiver, msg, sender, cc, logact)
1859+
if estat != PgLOG.SUCCESS:
18601860
ebuf = "From: {}\nTo: {}\n".format(sender, receiver)
18611861
if cc: ebuf += "Cc: {}\n".format(cc)
18621862
ebuf += "Subject: {}!\n\n{}\n".format(subject, msg)

0 commit comments

Comments
 (0)