Skip to content

Commit

Permalink
Fix issue with sending mail on download failure due to binary file read
Browse files Browse the repository at this point in the history
  • Loading branch information
simonoldfield authored and jeremyh committed Oct 12, 2018
1 parent dc09352 commit ba379ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def on_process_failure(self, process):
if process.exitcode < 0:
return

with open(process.log_file, 'rb') as f:
with open(process.log_file, 'rt') as f:
msg = f.read()

self._send_mail(msg, process.name)
Expand Down

0 comments on commit ba379ae

Please sign in to comment.