selftest: fix potential reference before assigned error
authorNoel Power <noel.power@suse.com>
Thu, 28 Mar 2024 09:09:02 +0000 (09:09 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 8 Apr 2024 03:00:39 +0000 (03:00 +0000)
commitefdbf0511e0a89f865210170001fbebf17a45278
treea5c45e4f554e3340b372cca752d5fdefd9e92b7e
parent8e931fce126e8c1128da893c806702731c08758a
selftest: fix potential reference before assigned error

This would only happen if the test failed (but the message would be
incorrect as 'e' the exception to be stringified doesn't exist.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15611
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/blackbox/http_chunk.py
python/samba/tests/blackbox/http_content.py