Skip to content

Commit

Permalink
WireViz 0.3.1 makes wireviz.parse()'s file_out argument optional
Browse files Browse the repository at this point in the history
again.
  • Loading branch information
amotl committed Nov 9, 2021
1 parent 9c842d1 commit 4761d3e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions wireviz_web/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 4761d3e

Please sign in to comment.