aboutsummaryrefslogtreecommitdiff
path: root/google/auth/transport/_aiohttp_requests.py
diff options
context:
space:
mode:
Diffstat (limited to 'google/auth/transport/_aiohttp_requests.py')
-rw-r--r--google/auth/transport/_aiohttp_requests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/google/auth/transport/_aiohttp_requests.py b/google/auth/transport/_aiohttp_requests.py
index ee94043..ab7dfef 100644
--- a/google/auth/transport/_aiohttp_requests.py
+++ b/google/auth/transport/_aiohttp_requests.py
@@ -24,6 +24,7 @@ import asyncio
import functools
import aiohttp
+import six
import urllib3
from google.auth import exceptions
@@ -190,11 +191,11 @@ class Request(transport.Request):
except aiohttp.ClientError as caught_exc:
new_exc = exceptions.TransportError(caught_exc)
- raise new_exc from caught_exc
+ six.raise_from(new_exc, caught_exc)
except asyncio.TimeoutError as caught_exc:
new_exc = exceptions.TransportError(caught_exc)
- raise new_exc from caught_exc
+ six.raise_from(new_exc, caught_exc)
class AuthorizedSession(aiohttp.ClientSession):