diff --git a/medusa/backup_manager.py b/medusa/backup_manager.py index 841e2ca8..c82b7c83 100644 --- a/medusa/backup_manager.py +++ b/medusa/backup_manager.py @@ -112,9 +112,8 @@ def register_backup(backup_name, is_async, overwrite_existing=True): if overwrite_existing: if not BackupMan.__clean(backup_name): logging.error(f"Registered backup name {backup_name} cleanup failed prior to re-register.") - else: - BackupMan.__instance.__backups[backup_name] = [None, BackupMan.STATUS_UNKNOWN, is_async] - logging.info("Registered backup id {}".format(backup_name)) + BackupMan.__instance.__backups[backup_name] = [None, BackupMan.STATUS_UNKNOWN, is_async] + logging.info("Registered backup id {}".format(backup_name)) # Caller can decide how long to wait for a result using the registered backup future returned. # A future is returned (for async mode), otherwise None (for non-async mode).