diff options
-rw-r--r-- | cdsapi/api.py | 4 | ||||
-rw-r--r-- | setup.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cdsapi/api.py b/cdsapi/api.py index ed8e5bb..3af6b36 100644 --- a/cdsapi/api.py +++ b/cdsapi/api.py @@ -518,6 +518,10 @@ class Client(object): if r is not None: if not retriable(r.status_code, r.reason): return r + try: + self.warning(r.json()['reason']) + except Exception: + pass self.warning("Recovering from HTTP error [%s %s], attemps %s of %s", r.status_code, r.reason, tries, self.retry_max) @@ -30,7 +30,7 @@ def read(fname): return io.open(file_path, encoding='utf-8').read() -version = '0.2.3' +version = '0.2.4' setuptools.setup( |