We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dry_run
1 parent f57d7f5 commit e6cf03fCopy full SHA for e6cf03f
sdmx/client.py
@@ -456,6 +456,8 @@ def get(
456
req = self._request_from_args(kwargs)
457
458
req_prepared = self.session.prepare_request(req)
459
+ if dry_run:
460
+ return req_prepared # type: ignore [return-value]
461
462
# Now get the SDMX message via HTTP
463
log.info(f"Request {req_prepared.url}")
@@ -469,9 +471,6 @@ def get(
469
471
log.info("Not found in cache")
470
472
pass
473
- if dry_run:
- return req_prepared # type: ignore [return-value]
474
-
475
try:
476
# Send the request
477
response = self.session.send(req_prepared, **self._send_kwargs)
0 commit comments