Skip to content

Commit

Permalink
Backend Error Fix (#642)
Browse files Browse the repository at this point in the history
* fix backend error

* debug using print statement

* delete  print statement
  • Loading branch information
klai95 authored Aug 26, 2022
1 parent d62f01d commit e51f0ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/utils/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def get_github_metadata(repo_url: str, branch: str = 'HEAD') -> dict:
yaml_file = get_file(repo_url, ".napari/config.yml", branch=branch)
if yaml_file:
config = yaml.safe_load(yaml_file)
# if the yaml.safe_load method returns None, then assign {} to config
if config is None:
config = {}
hub_config = {key: config[key] for key in hub_config_keys if key in config}
github_metadata.update(hub_config)

Expand Down

0 comments on commit e51f0ce

Please sign in to comment.