From 9f7eaca80d259201844f097fec24d1e9fe9fb5e3 Mon Sep 17 00:00:00 2001 From: Stanislaw Pitucha Date: Thu, 13 Jun 2013 13:57:15 +0000 Subject: Remove trivial cases of unused variables (1) Kill some of the variables marked as unused by flakes8. This should allow to enable F841 check in the future. Only trivial cases with no function calls and obviously pure functions (like datetime.now(), or len()) are cleaned up here. Part 1, split to reduce conflicts. Change-Id: I82854349574ec4bcb9336aba626eefdaed81a8c8 --- nova/compute/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/compute') diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 2ae435f9a..3e380cb6e 100755 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -494,7 +494,7 @@ class ComputeManager(manager.SchedulerDependentManager): 'assuming it\'s not on shared storage'), instance=instance) shared_storage = False - except Exception as e: + except Exception: LOG.exception(_('Failed to check if instance shared'), instance=instance) finally: -- cgit