Skip to content

Commit ed5778e

Browse files
committed
bug fix
1 parent 4d526ba commit ed5778e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/electiondata/userinterface/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ def report(
702702
lowercase=False,
703703
),
704704
)
705-
with open(out_path, "a") as f:
706-
f.write(out_str, encoding=constants.default_encoding)
705+
with open(out_path, "a", encoding=constants.default_encoding) as f:
706+
f.write(out_str)
707707
print(f"{et.title()} errors{and_warns} written to {out_path}")
708708

709709
# process name keys with only warnings (unless warnings suppressed)
@@ -729,8 +729,8 @@ def report(
729729
lowercase=False,
730730
),
731731
)
732-
with open(out_path, "a") as f:
733-
f.write(out_str, encoding=constants.default_encoding)
732+
with open(out_path, "a", encoding=constants.default_encoding) as f:
733+
f.write(out_str)
734734
print(f"{et.title()} warnings written to {out_path}")
735735

736736
# define return dictionary with reported keys set to {} and other keys preserved

0 commit comments

Comments
 (0)