79076376

Date: 2024-10-10 23:02:46
Score: 1.5
Natty:
Report link

How I can fix it

    try: response = requests.get(url)

response.raise_for_status ()

Verifie les erreurs HTTP

with open(filename, 'wb') as f: f.write(response.content) return filename except requests.ResquestException as e: print(f"Erreur lors du telechargement de l'image : {e}") return None

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): How I can fix it
  • Low reputation (1):
Posted by: user27682021