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:
David Stanek 2014-06-25 21:15:23 +00:00
parent bbfd58a6c1
commit b63a7445a3
1 changed files with 1 additions and 1 deletions

View File

@ -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):