From dd3a7e8562f9d8a5a360883b969fc2545bf649b1 Mon Sep 17 00:00:00 2001 From: Stefan Schulz Date: Mon, 28 Nov 2022 18:47:13 +0100 Subject: [PATCH] needs_external_needs: Skip setting prefixes if no prefix was given (#820) * Skip setting prefixes if no prefix was given * Fix formatting issue --- sphinx_needs/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sphinx_needs/utils.py b/sphinx_needs/utils.py index 343444fd1..100acdea5 100644 --- a/sphinx_needs/utils.py +++ b/sphinx_needs/utils.py @@ -229,6 +229,9 @@ def import_prefix_link_edit(needs: Dict[str, Any], id_prefix: str, needs_extra_l :param needs_extra_links: config var of all supported extra links. Normally coming from env.config.needs_extra_links :return: """ + if not id_prefix: + return + needs_ids = needs.keys() for need in needs.values():