Skip to content

Commit 2dc40db

Browse files
committed
Fix TypeError in ext.coverage logging
If there are any missing modules when using the coverage builder, a TypeError is thrown instead of a warning message being printed. The warning message needs a %s in the message to match the list of missing modules provided as a string.
1 parent eaebbec commit 2dc40db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/ext/coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _determine_py_coverage_modules(
156156
logger.warning(
157157
__(
158158
'the following modules are specified in coverage_modules '
159-
'but were not documented'
159+
'but were not documented: %s'
160160
),
161161
', '.join(missing_modules),
162162
)

0 commit comments

Comments
 (0)