netcmd: Fix error-checking condition
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 24 May 2021 04:40:55 +0000 (16:40 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 11 Jun 2021 07:41:38 +0000 (07:41 +0000)
commite8c242bed19432d96e78dc345ab5f06422c5b104
tree25d2856c5aa3cdaf7be17313913b5e0aebb9a54f
parent9f1e5637bc5fe51c56ad996dd881779e6ef3c0aa
netcmd: Fix error-checking condition

This condition probably meant to check the argument of the most recently
thrown exception, rather than the previous one again.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14669

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/domain_backup.py