1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00

Enable rule B (flake8-bugbear) on ruff

This commit is contained in:
Jair Henrique
2023-06-27 09:12:40 -03:00
parent 016a394f2c
commit 4f70152e7c
12 changed files with 29 additions and 29 deletions

View File

@@ -66,8 +66,8 @@ class DoAsyncRequest(BaseDoRequest):
def client(self):
try:
return self._client
except AttributeError:
raise ValueError('To access async client, use "with do_request() as client"')
except AttributeError as e:
raise ValueError('To access async client, use "with do_request() as client"') from e
def __call__(self, *args, **kwargs):
if hasattr(self, "_loop"):