From 4c923dbd38cb0afec8cab0fd2530b432b4ef7dc1 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Mon, 4 Aug 2014 21:15:53 +0200 Subject: [PATCH] =?UTF-8?q?chgpass:=20r=C3=A9cup=C3=A8re=20une=20erreur=20?= =?UTF-8?q?message=20unicode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/chgpass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/chgpass.py b/gestion/chgpass.py index b048fdd1..27ac14af 100755 --- a/gestion/chgpass.py +++ b/gestion/chgpass.py @@ -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