summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-05-14 08:28:48 -0700
committerMonty Taylor <mordred@inaugust.com>2013-05-14 08:28:48 -0700
commit016a0b301e0ecfea5d84b09e7f1e22a86953c1c1 (patch)
tree8e97f2e2c69a1e4ec2f63ee4a417abaec7337f82 /openstackclient/common
parentd6c760263b5a7f77bbb35e31f92dd5a9140278ee (diff)
downloadpython-openstackclient-016a0b301e0ecfea5d84b09e7f1e22a86953c1c1.tar.gz
Fix flake8 errors in anticipation of flake8 patch.
Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/command.py4
-rw-r--r--openstackclient/common/utils.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/openstackclient/common/command.py b/openstackclient/common/command.py
index 64e855df..59cd0da2 100644
--- a/openstackclient/common/command.py
+++ b/openstackclient/common/command.py
@@ -15,10 +15,10 @@
"""OpenStack base command"""
-from cliff.command import Command
+from cliff import command
-class OpenStackCommand(Command):
+class OpenStackCommand(command.Command):
"""Base class for OpenStack commands."""
api = None
diff --git a/openstackclient/common/utils.py b/openstackclient/common/utils.py
index 8a792675..56f9cd17 100644
--- a/openstackclient/common/utils.py
+++ b/openstackclient/common/utils.py
@@ -55,7 +55,7 @@ def find_resource(manager, name_or_id):
except Exception as ex:
try:
return manager.find(display_name=name_or_id)
- except:
+ except Exception:
pass
if type(ex).__name__ == 'NotFound':