From 918a388befda02c1234d4ede0c2bbba6ea1b5851 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Wed, 9 Oct 2013 11:52:01 +0530 Subject: [PATCH] [minor] fix backup --- webnotes/utils/backups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webnotes/utils/backups.py b/webnotes/utils/backups.py index 0debb167bc..f6872b7b6e 100644 --- a/webnotes/utils/backups.py +++ b/webnotes/utils/backups.py @@ -43,7 +43,7 @@ class BackupGenerator: last_db, last_file = self.get_recent_backup(older_than) if not (self.backup_path_files and self.backup_path_db): self.set_backup_file_name() - if not last_db and last_file: + if not last_db and not last_file: self.take_dump() if not ignore_files: self.zip_files()