Skip to content

Commit

Permalink
Tweak assert
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Dec 3, 2024
1 parent 77b97ec commit 2963edd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/srctools/_engine_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,8 @@ def record_strings(string: str) -> bytes:
ent_serialise(ent, dummy_file, record_strings)
ent_to_size[ent] = dummy_file.tell()

assert ent is not None and ent.classname.casefold() == '_cbaseentity_', ent
assert ent is not None
assert ent.classname.casefold() == '_cbaseentity_', ent
base_strings = ent_to_string[ent]
print(f'{SHARED_STRINGS-len(base_strings)}/{SHARED_STRINGS} shared strings used.')

Expand Down

0 comments on commit 2963edd

Please sign in to comment.