Update hub.py
* Update hub.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see
* Update hub.py
* Update hub.py
* Update hub.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see
@@ -44,6 +44,21 @@ def hub_plugin_info(
except error.HTTPError:
return None, False
+ # If the napari hub returns an info dict missing the required keys,
+ # simply return None, False like the above except
+ if (
+ not {
+ 'name',
+ 'version',
+ 'authors',
+ 'summary',
+ 'license',
+ 'project_site',
+ }
+ <= info.keys()
+ ):
+ return None, False
+
version = info["version"]
norm_name = normalized_name(info["name"])
is_available_in_conda_forge = True
