Skip to content

Commit

Permalink
style(ruff): fix log msg issues for rule G
Browse files Browse the repository at this point in the history
Signed-off-by: David Wallace <[email protected]>
  • Loading branch information
MyPyDavid committed Jul 18, 2024
1 parent f879aea commit 1169dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rdmo/core/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def read_xml_file(file_name, raise_exception=False):
try:
return ET.parse(file_name).getroot()
except Exception as e:
logger.error('Xml parsing error: ' + str(e))
logger.error('Xml file parsing error at getroot: %s', str(e))
if raise_exception:
raise e from e

Expand All @@ -146,7 +146,7 @@ def parse_xml_string(string):
try:
return ET.fromstring(string)
except Exception as e:
logger.error('Xml parsing error: ' + str(e))
logger.error('Xml parsing from string error: %s', str(e))


def flat_xml_to_elements(root) -> dict:
Expand Down

0 comments on commit 1169dd2

Please sign in to comment.