Skip to content

Commit 3f14a38

Browse files
committed
client: Preserve original exception chain
1 parent a4a2c41 commit 3f14a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

luno_python/base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def do(self, method, path, req=None, auth=False):
7676
try:
7777
params = json.loads(json.dumps(req))
7878
except TypeError as e:
79-
raise TypeError('luno: request parameters must be JSON-serializable: %s' % str(e))
79+
raise TypeError('luno: request parameters must be JSON-serializable: %s' % str(e)) from e
8080
headers = {'User-Agent': self.make_user_agent()}
8181
args = dict(timeout=self.timeout, params=params, headers=headers)
8282
if auth:

0 commit comments

Comments
 (0)