python dbcheck: use real exception name
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 26 Oct 2018 06:31:26 +0000 (19:31 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Nov 2018 04:08:12 +0000 (05:08 +0100)
and conventional indent

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
python/samba/dbchecker.py

index ecb4408eda865d96c4d6e14531595f7e4740bb52..0fb3eb225c27ca01bb0bdcc06964d1eeea7d579e 100644 (file)
@@ -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):