File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11## Changes in 0.1.3 (in development)
2+ * Fixed checking of response validity
23
34## Changes in 0.1.2
45* Added default file to KASSANDRA kerchunk store to account for case when no online
Original file line number Diff line number Diff line change @@ -67,14 +67,14 @@ def __init__(self):
6767
6868 def _read_das (self ) -> Dict :
6969 response = requests .get (KASSANDRA_DATASET_ATTRIBUTE_STRUCTURE )
70- if response .status_code != 200 :
70+ if not response .ok :
7171 return {}
7272 das_content = response .text
7373 return parse_das (das_content )
7474
7575 def _get_num_timesteps (self ) -> int :
7676 response = requests .get (KASSANDRA_DATASET_DESCRIPTOR_STRUCTURE )
77- if response != 200 :
77+ if not response . ok :
7878 return 0
7979 dds = DDSParser (response .text ).parse ()
8080 return dds .get ("time" ).size
You can’t perform that action at this time.
0 commit comments