From fc712abcd4a1776e780dbf0671c04d8b7af2294b Mon Sep 17 00:00:00 2001 From: dmytro-kyrychenko Date: Mon, 23 Oct 2023 16:42:42 +0300 Subject: [PATCH] fix: changed impact analysis related fix that is already in production --- api/views/yang_search/yang_search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/views/yang_search/yang_search.py b/api/views/yang_search/yang_search.py index 2ca024e2..db0a3da2 100644 --- a/api/views/yang_search/yang_search.py +++ b/api/views/yang_search/yang_search.py @@ -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)