Explorar el Código

Ajout du cas ou il y a une erreur HTTP (ex: timeout)

master
TheBidouilleur hace 2 semanas
padre
commit
873d26ccda
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      create_manga.py

+ 3
- 0
create_manga.py Ver fichero

@@ -37,6 +37,9 @@ def main():
create_manga(url)
except sqlite3.IntegrityError :
print("Erreur dans l'ajout ! Deja present(?)")
except urllib.error.HTTPError :
print("Erreur HTTP.. deuxieme tentative")
create_manga(url)

else :
print("Mode utilisateur")


Cargando…
Cancelar
Guardar