From fdca02be27b308d5f53df335616b81bde5e1ef47 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Tue, 1 Dec 2015 02:16:12 +0100 Subject: [PATCH] =?UTF-8?q?Les=20erreurs=20comportant=20des=20accents=20so?= =?UTF-8?q?nt=20correctement=20g=C3=A9r=C3=A9es?= 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 434fc68c..ed6e2d3f 100755 --- a/gestion/chgpass.py +++ b/gestion/chgpass.py @@ -101,7 +101,7 @@ def check_password(password, no_cracklib=False, dialog=False): msg = affich_tools.coul(msg, 'rouge', dialog=dialog) return True, msg except ValueError as e: - msg += str(e).decode() + msg += str(e).decode('utf-8') if dialog: msg = affich_tools.coul(msg, 'rouge', dialog=dialog)