From f848b8bafc07be0d5123014fff3bc8251f50010c Mon Sep 17 00:00:00 2001 From: Saurabh Date: Wed, 20 Mar 2013 13:55:08 +0530 Subject: [PATCH] merged backup manager python file --- setup/doctype/backup_manager/backup_manager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup/doctype/backup_manager/backup_manager.py b/setup/doctype/backup_manager/backup_manager.py index 69de823df1..213aa85500 100644 --- a/setup/doctype/backup_manager/backup_manager.py +++ b/setup/doctype/backup_manager/backup_manager.py @@ -30,7 +30,6 @@ def take_backups_dropbox(): backup_to_dropbox() send_email(True, "Dropbox") except Exception, e: - webnotes.errprint(e) send_email(False, "Dropbox", e) #backup to gdrive @@ -56,10 +55,9 @@ def send_email(success, service_name, error_status=None): failed.

Error message: %s

Please contact your system manager for more information.

-

Detailed Error Trace: %s

""" % \ - (service_name, error_status, getTraceback().replace("\n", "
")) + """ % (service_name, error_status) # email system managers from webnotes.utils.email_lib import sendmail sendmail(webnotes.conn.get_value("Backup Manager", None, "send_notifications_to").split(","), - subject=subject, msg=message) + subject=subject, msg=message) \ No newline at end of file