From 2ed2dafa29b7844d5a9074440d8b436317ae7e20 Mon Sep 17 00:00:00 2001 From: Rasmus Bahbah Nielsen <114926145+RasmusBahbah@users.noreply.github.com> Date: Wed, 18 Jan 2023 14:01:56 +0100 Subject: [PATCH] Error message if data service is offline --- carra2py.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/carra2py.py b/carra2py.py index 109c36a..6e71206 100644 --- a/carra2py.py +++ b/carra2py.py @@ -153,7 +153,11 @@ def get_data(self,polar = None): check = 1 except: pass - + + if check == 0: + logging.info('Data service is unavailable, try another date or later') + + return None os.chdir(self.base_folder)