Skip to content

Commit

Permalink
fix fails.csv generation - missing eol
Browse files Browse the repository at this point in the history
  • Loading branch information
ganti committed Nov 4, 2022
1 parent 79dc5dc commit d2e463b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axeman/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def download_worker(session, log_info, work_deque, download_queue):
logging.error("Exception getting block {}-{}! {}".format(start, end, e))
else: # Notorious for else, if we didn't encounter a break our request failed 3 times D:
with open('/tmp/fails.csv', 'a') as f:
f.write(",".join([log_info['url'], str(start), str(end)]))
f.write(",".join([log_info['url'], str(start), str(end)])+"\n")
return

for index, entry in zip(range(start, end + 1), entry_list['entries']):
Expand Down

0 comments on commit d2e463b

Please sign in to comment.