samba-tool: do not crash on unimplemented .run()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 16 Aug 2022 01:43:54 +0000 (13:43 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Sep 2022 22:34:36 +0000 (22:34 +0000)
commit8b403ab7c55aa3f269b38b19553f50303012025c
treed2529c18eb47c3c99584e96ef585c128464e2fef
parent8132edf119757ee91070facffef016c93de9c2a6
samba-tool: do not crash on unimplemented .run()

The run() method is always called with arguments, so it crashes before
the NotImplementedError() is ever reached. That's OK, but this is better.

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