Skip to content

Commit

Permalink
fix tricks yaml generation (#965)
Browse files Browse the repository at this point in the history
This should have failed no matter what since it was attempting to write a string to a file opened as binary.
  • Loading branch information
altendky committed Mar 14, 2023
1 parent 0d27bff commit 5400b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watchdog/watchmedo.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def tricks_generate_yaml(args):
else:
if not os.path.exists(args.append_to_file):
content = header + content
with open(args.append_to_file, "ab") as output:
with open(args.append_to_file, "a", encoding="utf-8") as output:
output.write(content)


Expand Down

0 comments on commit 5400b1f

Please sign in to comment.