Skip to content

Commit 74d314d

Browse files
authored
Fix XML validation check for mxformat script (#2963)
Update #2956 Fix so that XML validate returns an error condition. Would previously return nothing so would always pass.
1 parent cb672ce commit 74d314d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

python/Scripts/mxformat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def is_well_formed(xml_string):
1616
ET.fromstring(xml_string)
1717
except ET.ParseError as e:
1818
error = str(e)
19+
return error
1920

2021
def main():
2122
parser = argparse.ArgumentParser(description="Reformat a folder of MaterialX documents in place.")

0 commit comments

Comments
 (0)