Skip to content

Commit 67438af

Browse files
committed
clean up utils
1 parent 7299058 commit 67438af

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/utils.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
import numpy
1212
import requests
1313
from marshmallow import missing
14-
from requests import HTTPError
1514
from ruamel.yaml import YAML, comments
1615

1716
from bare_utils import DEPLOYED_BASE_URL, GH_API_URL
1817
from bioimageio.spec import (
1918
load_raw_resource_description,
2019
serialize_raw_resource_description_to_dict,
2120
)
21+
from bioimageio.spec.collection.v0_2.raw_nodes import Collection
2222
from bioimageio.spec.collection.v0_2.utils import resolve_collection_entries
23-
from bioimageio.spec.io_ import serialize_raw_resource_description
2423
from bioimageio.spec.partner.utils import enrich_partial_rdf_with_imjoy_plugin
2524

2625

@@ -110,9 +109,6 @@ def iterate_over_gh_matrix(matrix: Union[str, Dict[str, list]]):
110109
def resolve_partners(
111110
rdf: dict, *, current_format: str, previous_partner_hashes: Dict[str, str]
112111
) -> Tuple[List[dict], List[dict], Dict[str, str], set]:
113-
from bioimageio.spec import load_raw_resource_description
114-
from bioimageio.spec.collection.v0_2.raw_nodes import Collection
115-
116112
partners = []
117113
updated_partner_resources = []
118114
new_partner_hashes = {}
@@ -151,7 +147,7 @@ def resolve_partners(
151147
)
152148
try:
153149
r.raise_for_status()
154-
except HTTPError as e:
150+
except requests.HTTPError as e:
155151
print(e)
156152
continue
157153

0 commit comments

Comments
 (0)