From: Douglas Bagnall Date: Fri, 26 Oct 2018 06:31:26 +0000 (+1300) Subject: python dbcheck: use real exception name X-Git-Tag: tdb-1.3.17~1025 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0c45e0831f502e04e4100d795d0a06ff06eb3fe;p=thirdparty%2Fsamba.git python dbcheck: use real exception name and conventional indent Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- 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):