|
11 | 11 | import numpy |
12 | 12 | import requests |
13 | 13 | from marshmallow import missing |
14 | | -from requests import HTTPError |
15 | 14 | from ruamel.yaml import YAML, comments |
16 | 15 |
|
17 | 16 | from bare_utils import DEPLOYED_BASE_URL, GH_API_URL |
18 | 17 | from bioimageio.spec import ( |
19 | 18 | load_raw_resource_description, |
20 | 19 | serialize_raw_resource_description_to_dict, |
21 | 20 | ) |
| 21 | +from bioimageio.spec.collection.v0_2.raw_nodes import Collection |
22 | 22 | from bioimageio.spec.collection.v0_2.utils import resolve_collection_entries |
23 | | -from bioimageio.spec.io_ import serialize_raw_resource_description |
24 | 23 | from bioimageio.spec.partner.utils import enrich_partial_rdf_with_imjoy_plugin |
25 | 24 |
|
26 | 25 |
|
@@ -110,9 +109,6 @@ def iterate_over_gh_matrix(matrix: Union[str, Dict[str, list]]): |
110 | 109 | def resolve_partners( |
111 | 110 | rdf: dict, *, current_format: str, previous_partner_hashes: Dict[str, str] |
112 | 111 | ) -> 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 | | - |
116 | 112 | partners = [] |
117 | 113 | updated_partner_resources = [] |
118 | 114 | new_partner_hashes = {} |
@@ -151,7 +147,7 @@ def resolve_partners( |
151 | 147 | ) |
152 | 148 | try: |
153 | 149 | r.raise_for_status() |
154 | | - except HTTPError as e: |
| 150 | + except requests.HTTPError as e: |
155 | 151 | print(e) |
156 | 152 | continue |
157 | 153 |
|
|
0 commit comments