Correction de bug commands.py

This commit is contained in:
Adrien Bourmault 2022-02-09 10:01:08 +01:00 committed by admin666
parent b2233550a1
commit 21a38659d5
1 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ def cmdmainteneur(owners, nick, text, store):
host = splittedtext[1]
return "le responsable de cette machine est " \
+ store.knownHosts[host]["maintainer"]
+ store.knownHosts[host].maintainer
if len(splittedtext) == 3:
host = splittedtext[1]
@ -66,9 +66,9 @@ def cmdmainteneur(owners, nick, text, store):
log.error(repr(e))
return "machine inconnue (tout le monde est son mainteneur)"
except Exception as e:
log.error(repr(e))
return "erreur à l'exécution"
# except Exception as e:
# log.error(repr(e))
# return "erreur à l'exécution"
return "Syntaxe invalide"