From 4761d3e3b3bb6100caff0791c91fc0fbfeacdf36 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Fri, 22 Oct 2021 22:36:20 +0200 Subject: [PATCH] WireViz 0.3.1 makes `wireviz.parse()`'s `file_out` argument optional again. --- wireviz_web/core.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/wireviz_web/core.py b/wireviz_web/core.py index f5d65a3..537eb39 100644 --- a/wireviz_web/core.py +++ b/wireviz_web/core.py @@ -113,14 +113,6 @@ def wireviz_render(input_yaml: str, output_mimetype: str, output_filename: str) # Parse WireViz YAML. try: - # Set title, if not present. - default_title = "WireViz diagram and BOM" - yaml_data = yaml.safe_load(input_yaml) - if "title" not in yaml_data.get("metadata", {}): - yaml_data.setdefault("metadata", {}) - yaml_data["metadata"]["title"] = default_title - input_yaml = yaml.dump(yaml_data) - harness: Harness = wireviz.parse(yaml_input=input_yaml, return_types="harness") except Exception as ex: message = f"Unable to parse WireViz YAML format: {ex}"