From 0bc45963da845ced69ff33d271f638f9aae1893c Mon Sep 17 00:00:00 2001 From: Jackson Haenchen Date: Tue, 21 Dec 2021 15:15:31 -0600 Subject: [PATCH] Update xray client to forward args (#4709) --- moto/xray/mock_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/xray/mock_client.py b/moto/xray/mock_client.py index d7e06279f..b64d6e165 100644 --- a/moto/xray/mock_client.py +++ b/moto/xray/mock_client.py @@ -46,10 +46,10 @@ class MockXrayClient: if not f: return self - def wrapped_f(): + def wrapped_f(*args, **kwargs): self.start() try: - f() + f(*args, **kwargs) finally: self.stop()