]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused variable in restore_backup method
authorling-yun <zengyunling@huawei.com>
Fri, 17 Jan 2014 03:58:10 +0000 (11:58 +0800)
committerling-yun <zengyunling@huawei.com>
Sat, 18 Jan 2014 01:57:12 +0000 (09:57 +0800)
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

index 1255026e21688cf367fbec37eca10f4663579a23..a36790850e13bb2e743dbfb06e25d4e654b6d325 100644 (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'})