We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 528fbef commit 37d54eeCopy full SHA for 37d54ee
1 file changed
src/electiondata/userinterface/__init__.py
@@ -704,7 +704,7 @@ def report(
704
output_location, f"{file_prefix}_{et}_{nk_name}.errors"
705
)
706
with open(out_path, "a") as f:
707
- f.write(out_str)
+ f.write(out_str, encoding=constants.default_encoding)
708
print(f"{et.title()} errors{and_warns} written to {out_path}")
709
710
# process name keys with only warnings (unless warnings suppressed)
@@ -726,7 +726,7 @@ def report(
726
output_location, f"{file_prefix}_{et}_{nk_name}.warnings"
727
728
729
730
print(f"{et.title()} warnings written to {out_path}")
731
732
# define return dictionary with reported keys set to {} and other keys preserved
0 commit comments