diff --git a/fast64_internal/z64/exporter/decomp_edit/scene_table.py b/fast64_internal/z64/exporter/decomp_edit/scene_table.py index e153ba713..339ff6b73 100644 --- a/fast64_internal/z64/exporter/decomp_edit/scene_table.py +++ b/fast64_internal/z64/exporter/decomp_edit/scene_table.py @@ -51,7 +51,7 @@ def from_line(original_line: str): return SceneTableEntry(*params) else: - raise PluginError("ERROR: This line is not a scene table entry!") + raise PluginError("ERROR: This line is not a scene table entry! " + repr(original_line)) @staticmethod def from_scene(scene_name: str, draw_config: str, title_card_name: str): @@ -119,8 +119,8 @@ def new(export_path: str): header = data[: header_end_index + 1] lines = data[header_end_index + 1 :].split("\n") - lines = list(filter(None, lines)) # removes empty lines lines = [line.strip() for line in lines] + lines = list(filter(None, lines)) # removes empty lines sections: list[SceneTableSection] = [] current_section: Optional[SceneTableSection] = None