Skip to content

Commit

Permalink
Update LinkDownloader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
languagemaniac authored Feb 16, 2023
1 parent 6ba7d73 commit 740b88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LinkDownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def descargar_archivo(url, nombre_archivo):

# Escribir lista de errores en archivo de texto
if errores_descarga:
with open("errores.txt", "w") as f:
with open("errores.txt", "w", encoding="utf-8") as f:
for url, mensaje in errores_descarga:
f.write(f"{url}\t{mensaje}\n")
print("Se han registrado errores de descarga. Verifique el archivo 'errores.txt' para más información.")

0 comments on commit 740b88c

Please sign in to comment.