From 6c75f152138eb6c2124ddf0527556f18c2f12a18 Mon Sep 17 00:00:00 2001 From: Yuvaraja Mariappan Date: Sat, 27 Feb 2016 10:18:40 -0800 Subject: [PATCH] exception is not handled in the exception. added an exception handler to handle the exception in the exception. Change-Id: I05f911b37ec67318cb427ee145d2c4effec6f905 Closes-bug: #1550764 --- src/discovery/disc_auth_keystone.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/discovery/disc_auth_keystone.py b/src/discovery/disc_auth_keystone.py index 8ab3cf88b52..d379992708d 100644 --- a/src/discovery/disc_auth_keystone.py +++ b/src/discovery/disc_auth_keystone.py @@ -8,7 +8,10 @@ try: from keystoneclient.middleware import auth_token except ImportError: - from keystonemiddleware import auth_token + try: + from keystonemiddleware import auth_token + except Exception: + pass except Exception: pass