summaryrefslogtreecommitdiff
path: root/sphinx/util/logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/logging.py')
-rw-r--r--sphinx/util/logging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py
index e18d82469..8d1c94b44 100644
--- a/sphinx/util/logging.py
+++ b/sphinx/util/logging.py
@@ -364,7 +364,8 @@ def is_suppressed_warning(type: str, subtype: str, suppress_warnings: List[str])
target, subtarget = warning_type, None
if target == type:
- if (subtype is None or subtarget is None or
+ if (subtype is None and subtarget is None
+ or subtarget is None or
subtarget == subtype or subtarget == '*'):
return True