Fix message d'erreur

This commit is contained in:
tfa
2022-09-07 14:40:48 +02:00
parent 94a51fcaf8
commit df382d7f53

View File

@@ -92,7 +92,7 @@ class ChefMou(Plugin):
#Et on recherche dans la liste originale avec le titre original
s = soup.find('th', string=originalList[idxTitre[0]])
t = s.parent.findAll('a')
idx = 9
idx = 25
if chunks[1].lower() == "souba" or chunks[1].lower() == "soubassophone" or chunks[1].lower() == "sb":
idx = 0
elif chunks[1].lower() == "basse" or chunks[1].lower() == "bs" :
@@ -112,7 +112,7 @@ class ChefMou(Plugin):
try :
await evt.respond("["+originalList[idxTitre[0]]+ " " + chunks[1]+"]"+"(<https://partoches.pustule.org"+t[idx].get("href")+">)")
except IndexError:
await evt.respond("Le morceau "+ strTitre[0] + " existe mais pas ta partoche")
await evt.respond("Le morceau "+ originalList[idxTitre[0]] + " existe mais pas ta partoche")
else:
await evt.respond("Morceau non trouvé")