From 68ed1bcec81e173648a4a86e5f4e21abc6dcf539 Mon Sep 17 00:00:00 2001 From: ling-yun Date: Fri, 17 Jan 2014 11:58:10 +0800 Subject: [PATCH] Remove unused variable in restore_backup method Variable err in restore_backup method is not being used, so remove this 'err ' variable. Change-Id: I31f6da5fd55e025d6496aca76a1157ff5a167d9e Closes-Bug: #1270034 --- cinder/backup/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/backup/manager.py b/cinder/backup/manager.py index 1255026e2..a36790850 100644 --- a/cinder/backup/manager.py +++ b/cinder/backup/manager.py @@ -348,7 +348,7 @@ class BackupManager(manager.SchedulerDependentManager): self._get_driver(backend).restore_backup(context, backup, volume, backup_service) - except Exception as err: + except Exception: with excutils.save_and_reraise_exception(): self.db.volume_update(context, volume_id, {'status': 'error_restoring'}) -- 2.45.2