Bug fix when generating a DM sheet with no random_tables entry.

This commit is contained in:
Mark Wolfman
2021-07-01 21:01:41 -05:00
parent 4e11af7acd
commit 084ea27d00
+1 -1
View File
@@ -248,7 +248,7 @@ def make_gm_sheet(
create_monsters_tex(monsters_, use_dnd_decorations=fancy_decorations)
)
# Add the random tables
random_tables = [s.replace(" ", "_").lower() for s in gm_props.pop("random_tables")]
random_tables = [s.replace(" ", "_").lower() for s in gm_props.pop("random_tables", [])]
tex.append(
create_random_tables_tex(
conjure_animals=("conjure_animals" in random_tables),