We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07555f2 commit 018e3deCopy full SHA for 018e3de
src/wireviz/wireviz.py
@@ -88,9 +88,10 @@ def parse(
88
raise Exception("No output formats or return types specified")
89
90
yaml_data, yaml_file = _get_yaml_data_and_path(inp)
91
- assert isinstance(
92
- yaml_data, dict
93
- ), f"Expected a dict as top-level YAML input, but got: {type(yaml_data)}"
+ if not isinstance(yaml_data, dict):
+ raise TypeError(
+ f"Expected a dict as top-level YAML input, but got: {type(yaml_data)}"
94
+ )
95
if output_formats:
96
# need to write data to file, determine output directory and filename
97
output_dir = _get_output_dir(yaml_file, output_dir)
0 commit comments