Skip to content

Commit

Permalink
fix 4
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture committed Jul 30, 2024
1 parent 38d9ac2 commit 5c4b11f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
script: |
from pathlib import Path
from lxml.etree import parse
from lxml.etree import parse, XMLSyntaxError
encountered_errors = []
root_path = Path.cwd()
Expand All @@ -29,8 +29,7 @@ jobs:
try:
parse(str(file))
except Exception as e:
message, _ = str(e).rsplit(" (line", maxsplit=1)
encountered_errors.append(f"{file.relative_to(root_path)}: {message}")
encountered_errors.append(f"{file.relative_to(root_path)}: {e.msg}")
if encountered_errors:
print("\nInvalid XML encodings were found:")
Expand Down

0 comments on commit 5c4b11f

Please sign in to comment.