Skip to content

Commit

Permalink
one more nosemgrep, crappy thing
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Mar 3, 2024
1 parent 327a8ae commit 0f989c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mavros/mavros/cmd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def print_version(ctx, param_, value):
share_dir = aip.get_package_share_directory("mavros")
package_xml = pathlib.Path(share_dir) / "package.xml"

tree = ET.parse(package_xml)
tree = ET.parse(package_xml) # nosemgrep
versions = tree.getroot().findall("version")

click.echo(f"MAVROS Version: {versions[0].text}")
Expand Down

0 comments on commit 0f989c8

Please sign in to comment.