From: ling-yun Date: Fri, 17 Jan 2014 03:58:10 +0000 (+0800) Subject: Remove unused variable in restore_backup method X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=68ed1bcec81e173648a4a86e5f4e21abc6dcf539;p=openstack-build%2Fcinder-build.git 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 --- 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'})