From 1d32d270b9f81f025085fb24b3d5222b65e9b032 Mon Sep 17 00:00:00 2001 From: h-suzuki Date: Thu, 7 Mar 2024 14:21:07 +0900 Subject: [PATCH] Fix: code style Signed-off-by: h-suzuki --- ros2caret/verb/version.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ros2caret/verb/version.py b/ros2caret/verb/version.py index 928bbc4..f70ebd4 100644 --- a/ros2caret/verb/version.py +++ b/ros2caret/verb/version.py @@ -13,11 +13,11 @@ # limitations under the License. import os.path - -from ros2caret.verb import VerbExtension from ament_index_python.packages import get_package_share_directory, PackageNotFoundError import xml.etree.ElementTree as ET +from ros2caret.verb import VerbExtension + class CaretVersionVerb(VerbExtension): @@ -34,7 +34,7 @@ def get_version(self): root = tree.getroot() version_element = root.find('version') if version_element is None: - raise RuntimeError("Error: Package version not found in package.xml") + raise RuntimeError('Error: Package version not found in package.xml') return version_element.text except(PackageNotFoundError, FileNotFoundError): - raise RuntimeError("Error: package or file share/ros2caret/package.xml not found") + raise RuntimeError('Error: package or file share/ros2caret/package.xml not found')