Skip to content

Conversation

@babolivier
Copy link
Member

Fixes #167

Copy link
Member Author

@babolivier babolivier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've verified this works locally (and that it still returns a non-zero code when an error is present), so I'm going to merge this now.

def write_domains(doc, time, output_dir="."):
outData = doc_to_bytestring(doc)
for d in doc.findall("//domain"):
for d in doc.getroot().findall(".//domain"):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was printing a deprecation error, so I fixed it while I was there.

Comment on lines +69 to +75
parser.add_argument("-d", metavar="dir", help="output directory")
parser.add_argument(
"-a", action="store_true", help="write configuration files for all domains"
)
parser.add_argument(
"file", nargs="*", help="input file(s) to process, wildcards allowed"
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like VS Code's formatter kicked in. No big deal.

@babolivier babolivier merged commit 6d7b0c1 into master Dec 17, 2025
4 checks passed
@babolivier babolivier deleted the babolivier/convert branch December 17, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

convert.py should not exit on failure

2 participants