Fix EM10{1,2} (exception must not use a string)

This commit is contained in:
Adam Turner
2023-08-13 20:07:28 +01:00
committed by Adam Turner
parent ae0d97bb26
commit d80eab689d
48 changed files with 179 additions and 112 deletions

View File

@@ -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