Skip to content

Commit

Permalink
Update output_format flag argument to always be string
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
  • Loading branch information
ajnelson-nist committed Oct 29, 2024
1 parent 835fc0b commit 67ba54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions case_cli_example/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ def main() -> None:
(n_example_organization, NS_UCO_CORE.name, Literal("Cyber Domain Ontology"))
)

# Write output file.
# Write output file, defaulting to Turtle format.
output_format = (
guess_format(args.out_graph)
if args.output_format is None
else args.output_format
)
) or "turtle"
graph.serialize(destination=args.out_graph, format=output_format)


Expand Down

0 comments on commit 67ba54e

Please sign in to comment.