improve assertion error message

This commit is contained in:
Soren I. Bjornstad 2024-07-25 15:42:11 -05:00
parent b15c04bdaa
commit 81c46cc5e4
2 changed files with 3 additions and 2 deletions

View File

@ -348,7 +348,8 @@ def _private_people_replacement_table(
elif delegated_publicity_status is False: elif delegated_publicity_status is False:
private_person_tiddlers.append(pt) private_person_tiddlers.append(pt)
continue continue
assert delegated_publicity_status is None assert delegated_publicity_status is None, \
f"publicity status was {delegated_publicity_status}"
# Default handler. # Default handler.
with pt.open() as f: with pt.open() as f:

View File

@ -145,7 +145,7 @@ def _init_gitignore() -> None:
.peru/ .peru/
output/ output/
\$__StoryList.tid \\$__StoryList.tid
""").strip() """).strip()
with open(".gitignore", "w") as f: with open(".gitignore", "w") as f:
f.write(GITIGNORE) f.write(GITIGNORE)