netcmd: Fix error-checking condition
commit445fb770c77b488c3ff7e426d985206967f5d825
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 24 May 2021 04:40:55 +0000 (24 16:40 +1200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Jul 2021 12:31:15 +0000 (13 12:31 +0000)
tree258015aec0cf7b919e16f9a2f929962d87d459c0
parent303a0ecdd9d6c3072824380b4faa88cb0821f117
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>
(cherry picked from commit e8c242bed19432d96e78dc345ab5f06422c5b104)
python/samba/netcmd/domain_backup.py