Skip to content

Commit

Permalink
Fix issue where output files were opened in wrong mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Jan 20, 2025
1 parent f402c77 commit 6ee095d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transdoc/__transform_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def transform_tree(
transformer,
str(mapping.input),
open(mapping.input),
None if mapping.output is None else open(mapping.output),
None if mapping.output is None else open(mapping.output, "w"),
)
except Exception as e:
e.add_note(f"Error occurred while transforming {mapping.input}")
Expand Down

0 comments on commit 6ee095d

Please sign in to comment.