summaryrefslogtreecommitdiff
path: root/nova/image
diff options
context:
space:
mode:
authorAlexander Bochkarev <abochkarev@mirantis.com>2014-02-28 15:27:32 +0400
committerMatthew Gilliard <matthew.gilliard@hp.com>2014-05-28 14:55:08 +0100
commit1fdc4afa157887d45e2f326d7373a5b1e8ee7aeb (patch)
tree7f7940ccda6079cd6f075ba31703f904a17abd5f /nova/image
parent5a7eb3aa6874024c8ff4cfb7031efc0e5a58cf82 (diff)
downloadnova-1fdc4afa157887d45e2f326d7373a5b1e8ee7aeb.tar.gz
Enable flake8 F841 checking
This check looks to see whether a local variable is unused. Fixed all of violators of said check. Change-Id: I6ff349ca8d650ae7d6ebeeb116a1649b0db8f071
Diffstat (limited to 'nova/image')
-rw-r--r--nova/image/glance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py
index 6b24cc2c4d..2e8ca103fe 100644
--- a/nova/image/glance.py
+++ b/nova/image/glance.py
@@ -282,7 +282,7 @@ class GlanceImageService(object):
return self._download_handlers[scheme]
except KeyError:
return None
- except Exception as ex:
+ except Exception:
LOG.error(_("Failed to instantiate the download handler "
"for %(scheme)s") % {'scheme': scheme})
return