From 016a0b301e0ecfea5d84b09e7f1e22a86953c1c1 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 14 May 2013 08:28:48 -0700 Subject: Fix flake8 errors in anticipation of flake8 patch. Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e --- openstackclient/common/command.py | 4 ++-- openstackclient/common/utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'openstackclient/common') 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': -- cgit v1.2.1