diff options
author | Baudouin Raoult <baudouin.raoult@ecmwf.int> | 2018-05-12 16:48:36 +0100 |
---|---|---|
committer | Baudouin Raoult <baudouin.raoult@ecmwf.int> | 2018-05-12 16:48:36 +0100 |
commit | a326de56227dc90b69ad46785d02eb841e2d0335 (patch) | |
tree | 151b9624a0715d502c4feb14d133aab9e6de629e | |
parent | 0482ea3f08a91abc57bdba8e3ccfe10b5f0d3761 (diff) |
Tidy
-rw-r--r-- | cdsapi/api.py | 2 | ||||
-rwxr-xr-x | example-era5.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cdsapi/api.py b/cdsapi/api.py index f8517ac..40512de 100644 --- a/cdsapi/api.py +++ b/cdsapi/api.py @@ -197,7 +197,7 @@ class Client(object): if n.strip() == '' and not self.full_stack: break self.logger.error(' %s' % (n,)) - raise Exception(reply['error'].get('reason'),) + raise Exception(reply['error'].get('reason')) raise Exception('Unknown API state [%s]' % (reply['state'],)) diff --git a/example-era5.py b/example-era5.py index 67cc6f2..135f6b6 100755 --- a/example-era5.py +++ b/example-era5.py @@ -13,8 +13,8 @@ c = cdsapi.Client() c.retrieve("reanalysis-era5-pressure-levels", { - "variable": "geopotential", - "pressure_level": "500", + "variable": "temperature", + "pressure_level": "1000", "product_type": "reanalysis", "date": "2008-01-01/2017-12-31", "time": "12:00", |