Commit 4c923dbd authored by Daniel STAN's avatar Daniel STAN

chgpass: récupère une erreur message unicode

parent c01ddeb2
......@@ -114,7 +114,7 @@ def check_password(password, no_cracklib=False, dialog=False):
return True, msg
except ValueError as e:
if not dialog:
affich_tools.cprint(str(e).decode(), "rouge")
affich_tools.cprint(e.message, "rouge")
else:
msg += affich_tools.coul(str(e).decode(), "rouge", dialog=dialog)
return False, msg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment