From 81c46cc5e4312dbb21d7101f70d317a97236c7ff Mon Sep 17 00:00:00 2001 From: "Soren I. Bjornstad" Date: Thu, 25 Jul 2024 15:42:11 -0500 Subject: [PATCH] improve assertion error message --- tzk/builders.py | 3 ++- tzk/tw.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tzk/builders.py b/tzk/builders.py index d1afe1e..ef9411b 100644 --- a/tzk/builders.py +++ b/tzk/builders.py @@ -348,7 +348,8 @@ def _private_people_replacement_table( elif delegated_publicity_status is False: private_person_tiddlers.append(pt) continue - assert delegated_publicity_status is None + assert delegated_publicity_status is None, \ + f"publicity status was {delegated_publicity_status}" # Default handler. with pt.open() as f: diff --git a/tzk/tw.py b/tzk/tw.py index d9de5b6..2d90985 100644 --- a/tzk/tw.py +++ b/tzk/tw.py @@ -145,7 +145,7 @@ def _init_gitignore() -> None: .peru/ output/ - \$__StoryList.tid + \\$__StoryList.tid """).strip() with open(".gitignore", "w") as f: f.write(GITIGNORE)