Skip to content

Commit

Permalink
improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Aug 30, 2024
1 parent 8310ab1 commit 4ae7642
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dfm_tools/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ def cds_credentials():
except Exception as e:
if "Missing/incomplete configuration file" in str(e):
# query apikey if not present in file or envvars
print("Downloading CDS/ERA5 data requires a ECMWF API-key, copy your API-key from https://cds-beta.climate.copernicus.eu/profile (first register, login and accept the terms). More info in https://forum.ecmwf.int/t/3743). ")
print("Downloading CDS/ERA5 data requires a ECMWF API-key, copy "
"your API-key from https://cds-beta.climate.copernicus.eu/profile "
"(first register, login and accept the terms). "
"More info in https://forum.ecmwf.int/t/3743.")
cds_apikey = getpass.getpass("\nEnter your ECMWF API-key (string with dashes): ")
cds_set_credentials(cds_url, cds_apikey)
else:
Expand Down

0 comments on commit 4ae7642

Please sign in to comment.