1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

netcmd: Incorrect arguments to Exception constructor

Discovered by Semmle code analysis:
https://lgtm.com/projects/g/samba-team/samba

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>

Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Thu Jun 17 05:12:03 UTC 2021 on sn-devel-184
This commit is contained in:
Garming Sam 2019-09-23 15:25:42 +12:00 committed by Douglas Bagnall
parent 1f2ce49bd3
commit 1c3821c9f9

View File

@ -515,7 +515,7 @@ class cmd_computer_edit(Command):
samdb.modify(res_msg_diff)
except Exception as e:
raise CommandError("Failed to modify computer '%s': " %
(computername, e))
computername, e)
self.outf.write("Modified computer '%s' successfully\n" % computername)