]> git.ipfire.org Git - thirdparty/samba.git/commit
python: PY3 Exceptions don't have .message
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 26 Oct 2018 07:36:57 +0000 (20:36 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 1 Nov 2018 04:08:10 +0000 (05:08 +0100)
commit2fedb9502238009522cdb12ce6f131f46be82662
tree0855cfcd6ff58249c916b584d7c0a202aa62cb3d
parent2013cd2889df484efbfb106fea38085bfbb0315c
python: PY3 Exceptions don't have .message

but str(e) is the same as str(e.message), so we can use that
on 2 and 3.

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