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
This commit is contained in:
ling-yun 2014-01-17 11:58:10 +08:00
parent 5be4620ae5
commit 68ed1bcec8
1 changed files with 1 additions and 1 deletions

View File

@ -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'})