diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2018-10-26 19:31:26 +1300 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2018-11-01 05:08:12 +0100 |
commit | f0c45e0831f502e04e4100d795d0a06ff06eb3fe (patch) | |
tree | a3a8ecf7fb39039c8a6b042815550a0f1e9096e1 /python/samba/dbchecker.py | |
parent | 7058e21ebecaaf397d4ff502f4ba6bb2e4c0e564 (diff) | |
download | samba-f0c45e0831f502e04e4100d795d0a06ff06eb3fe.tar.gz |
python dbcheck: use real exception name
and conventional indent
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'python/samba/dbchecker.py')
-rw-r--r-- | python/samba/dbchecker.py | 8 |
1 files 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): |