From 55f580d771a69b6c4b6b1fee3607eb111bb3c967 Mon Sep 17 00:00:00 2001 From: Renaud <38732257+renaudjester@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:16:27 +0200 Subject: [PATCH] chore: refactor to stop using the cache (#95) Not using any cache anymore Always get the data on the fly --- README.md | 2 +- copernicusmarine/core_functions/credentials_utils.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f2759fae..3fd561d2 100644 --- a/README.md +++ b/README.md @@ -453,7 +453,7 @@ copernicusmarine get --dataset-id cmems_obs-ins_blk_phybgcwav_mynrt_na_irr --ind Returns: -```txt +```text INFO - 2024-04-03T12:58:40Z - Dataset version was not specified, the latest one was selected: "202311" INFO - 2024-04-03T12:58:40Z - Dataset part was not specified, the first one was selected: "history" INFO - 2024-04-03T12:58:40Z - You forced selection of service: original-files diff --git a/copernicusmarine/core_functions/credentials_utils.py b/copernicusmarine/core_functions/credentials_utils.py index 2d23304f..9373ac34 100644 --- a/copernicusmarine/core_functions/credentials_utils.py +++ b/copernicusmarine/core_functions/credentials_utils.py @@ -36,12 +36,10 @@ # TODO: handle cache of the credentials without cachier -class CredentialCannotBeNone(Exception): - ... +class CredentialCannotBeNone(Exception): ... -class InvalidUsernameOrPassword(Exception): - ... +class InvalidUsernameOrPassword(Exception): ... def _load_credential_from_copernicus_marine_configuration_file(