mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix EM10{1,2} (exception must not use a string)
This commit is contained in:
@@ -74,7 +74,8 @@ def tail_check(check):
|
||||
for node in nodes:
|
||||
if node.tail and rex.search(node.tail):
|
||||
return True
|
||||
raise AssertionError(f'{check!r} not found in tail of any nodes {nodes}')
|
||||
msg = f'{check!r} not found in tail of any nodes {nodes}'
|
||||
raise AssertionError(msg)
|
||||
return checker
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user