Skip to content

Commit

Permalink
fix: changed impact analysis related fix that is already in production
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-kyrychenko committed Oct 23, 2023
1 parent 9ef72d3 commit fc712ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/views/yang_search/yang_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,8 @@ def get_dependencies_dependents_data(
module_detail = module_details(module_data['name'], module_data.get('revision'), True)
assert isinstance(module_detail, dict)
if 'warning' in module_detail:
# NOTE: ignoring warnings, so that impact analysis page could load even if we have problem with module
return module_detail
if 'metadata' not in module_detail:
return None
module_detail = module_detail['metadata']
assert isinstance(module_detail, dict)
Expand Down

0 comments on commit fc712ab

Please sign in to comment.