python:ndr: Use f-string to format exception message
commit7e7c692adbce9f82828f0754a3fa79602b84337b
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 13 Mar 2023 22:50:17 +0000 (14 11:50 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Mar 2023 00:22:32 +0000 (20 00:22 +0000)
treea5a65b0e0ee063a2657d698d6f36bf946d581f58
parent795bab5629195395d512bb9a830542de6067195b
python:ndr: Use f-string to format exception message

If 'object' happened to be a tuple, we would get one of the following
errors:

TypeError: not enough arguments for format string
TypeError: not all arguments converted during string formatting

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/ndr.py