From c55915b830da29be12d94590c442a237e1c60d77 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Wed, 31 Jan 2018 01:21:46 +0900 Subject: [PATCH] intersphinx: Fix invalid info message is shown even if no errors --- sphinx/ext/intersphinx.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sphinx/ext/intersphinx.py b/sphinx/ext/intersphinx.py index 9931b5ea9..8432b2b60 100644 --- a/sphinx/ext/intersphinx.py +++ b/sphinx/ext/intersphinx.py @@ -254,7 +254,9 @@ def load_mappings(app): update = True break - if len(failures) < len(invs): + if failures == []: + pass + elif len(failures) < len(invs): logger.info("encountered some issues with some of the inventories," " but they had working alternatives:") for fail in failures: