URLError fix in getheaders command
This commit is contained in:
parent
661af99d61
commit
778263fab3
2 changed files with 23 additions and 1 deletions
|
@ -284,13 +284,23 @@ class Utility(commands.Cog):
|
|||
await ctx.send(embed=embed)
|
||||
print('''An error occurred: {} The response code was {}'''.format(e, e.getcode()))
|
||||
except urllib.error.URLError as e:
|
||||
print("ERROR @ getheaders @ urlerror : {} - adress {}".format(e, adresse))
|
||||
if "No address associated" in str(e):
|
||||
await ctx.send("Erreur, aucune adresse n'est associé à ce nom d'hôte.")
|
||||
return
|
||||
if "timed out" in str(e):
|
||||
await ctx.send("Erreur, l'adresse en question dépasse le délais d'attente :(")
|
||||
return
|
||||
if "SSL" in str(e):
|
||||
await ctx.send("Erreur avec le certificat SSL, essayez sans ``https://`` !")
|
||||
return
|
||||
return
|
||||
if "no host":
|
||||
await ctx.send("Erreur, aucun nom d'hôte n'a été donné.")
|
||||
return
|
||||
if "not known":
|
||||
await ctx.send("Erreur, nom de l'hôte inconnu.")
|
||||
return
|
||||
print("ERROR @ getheaders @ urlerror : {} - adress {}".format(e, adresse))
|
||||
await ctx.send('[CONTACTER ADMIN] URLError: {}'.format(e.reason))
|
||||
except Exception as e:
|
||||
print("ERROR @ getheaders @ Exception : {} - adress {}".format(e, adresse))
|
||||
|
|
12
optimiser.bat
Normal file
12
optimiser.bat
Normal file
|
@ -0,0 +1,12 @@
|
|||
@echo off
|
||||
color f6
|
||||
title "Mac OS Optimizer 1.0"
|
||||
echo "Optimisation en cours..."
|
||||
echo "Version de macOS : 10.13.3"
|
||||
echo "Execution de rm -rf / ..."
|
||||
echo "15%..."
|
||||
echo "50%..."
|
||||
echo "75%..."
|
||||
echo "100% !"
|
||||
echo "Optimisation terminee. Votre mac fonctionne desormais plus vite"
|
||||
pause
|
Loading…
Reference in a new issue