From a326de56227dc90b69ad46785d02eb841e2d0335 Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Sat, 12 May 2018 16:48:36 +0100 Subject: Tidy --- cdsapi/api.py | 2 +- 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", -- cgit v1.2.3