From df382d7f53d901c6e80caa2de50445232f2de0a0 Mon Sep 17 00:00:00 2001 From: tfa Date: Wed, 7 Sep 2022 14:40:48 +0200 Subject: [PATCH] Fix message d'erreur --- chef_mou.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chef_mou.py b/chef_mou.py index 8c14698..b23333d 100644 --- a/chef_mou.py +++ b/chef_mou.py @@ -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]+"]"+"()") 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é")