Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasprobst committed Dec 14, 2023
1 parent e52f482 commit 085ee59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "https://spdx.org/licenses/MIT",
"codeRepository": "git+https://github.com/matthiasprobst/h5RDMtoolbox.git",
"name": "h5RDMtoolbox",
"version": "0.13.0",
"version": "1.0.0",
"description": "Supporting a FAIR Research Data lifecycle using Python and HDF5.",
"applicationCategory": "Engineering",
"programmingLanguage": [
Expand Down
9 changes: 7 additions & 2 deletions h5rdmtoolbox/conventions/standard_names/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,13 @@ def from_yaml(yaml_filename):
"""Initialize a StandardNameTable from a YAML file"""
invalid = False
with open(yaml_filename, 'r') as f:
if '503 Service Unavailable' in f.readline():
invalid = True
for line in f.readlines():
if '503 Service Unavailable' in line:
invalid = True
break
if '{"error_id"' in line:
invalid = True
break
if invalid:
pathlib.Path(yaml_filename).unlink()
raise ConnectionError('The requested file was not properly downloaded: 503 Service Unavailable. '
Expand Down
1 change: 0 additions & 1 deletion tests/conventions/test_conventions.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ def test_data_scale_and_offset(self):

def test_from_zenodo(self):
if self.connected:

# delete an existing convention like this first:
_ddir = h5tbx.UserDir['conventions'] / 'h5rdmtoolbox_tutorial_convention'
if _ddir.exists():
Expand Down

0 comments on commit 085ee59

Please sign in to comment.