Fixes a Python3 syntax error
Python3 has a new way to raise an exception with an existing traceback. In Python2 there was a special syntax, but that was removed in Python3. bp python3 Change-Id: I6811f7f46693fc84d0c61116cdd4897b6c20a9fc
This commit is contained in:
parent
bbfd58a6c1
commit
b63a7445a3
|
@ -372,7 +372,7 @@ class BaseProvider(provider.Provider):
|
|||
try:
|
||||
self.token_api.get_token(token_id)
|
||||
except exception.TokenNotFound:
|
||||
raise exc_info[0], exc_info[1], exc_info[2]
|
||||
six.reraise(*exc_info)
|
||||
|
||||
def get_token_version(self, token_data):
|
||||
if token_data and isinstance(token_data, dict):
|
||||
|
|
Loading…
Reference in New Issue