diff --git a/frappe/patches/4_0/private_backups.py b/frappe/patches/4_0/private_backups.py index c4526072a9..f82209c31e 100644 --- a/frappe/patches/4_0/private_backups.py +++ b/frappe/patches/4_0/private_backups.py @@ -7,5 +7,5 @@ from frappe.installer import make_site_dirs def execute(): make_site_dirs() - if frappe.local.conf.backup and frappe.local.conf.backup.startswith("public"): + if frappe.local.conf.backup_path and frappe.local.conf.backup_path.startswith("public"): raise Exception, "Backups path in conf set to public directory"