From f0c45e0831f502e04e4100d795d0a06ff06eb3fe Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 26 Oct 2018 19:31:26 +1300 Subject: [PATCH] python dbcheck: use real exception name and conventional indent Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- python/samba/dbchecker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py index ecb4408eda8..0fb3eb225c2 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -48,11 +48,11 @@ def dump_attr_values(vals): result = "" for value in vals: if len(result): - result = "," + result + result = "," + result try: - result = result + str(value) - except UnicodeDecode: - result = result + repr(value) + result = result + str(value) + except UnicodeDecodeError: + result = result + repr(value) return result class dbcheck(object): -- 2.47.2