diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-03-17 17:17:28 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-07-02 04:21:36 +0000 |
commit | 66620567ae325d6c20b0a38c41fa138e902ec8e0 (patch) | |
tree | 4bdfa4f9912e74c14b80ae0e044f29bd39f8f841 /source4/scripting | |
parent | 9c630b4bfd09dbfdb3709bf9499ebcc584bd3239 (diff) | |
download | samba-66620567ae325d6c20b0a38c41fa138e902ec8e0.tar.gz |
s4/scripting/smbstatus: approach py3 compatibility
It is still unused and untested, probably not working.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/bin/smbstatus | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/bin/smbstatus b/source4/scripting/bin/smbstatus index fd67b2ca691..cc06c4c4290 100755 --- a/source4/scripting/bin/smbstatus +++ b/source4/scripting/bin/smbstatus @@ -84,8 +84,8 @@ if opts.nbt: else: try: conn = open_connection("smb_server") - except RuntimeError, (num, msg): - if msg == 'NT_STATUS_OBJECT_NAME_NOT_FOUND': + except RuntimeError as e: + if e.args[1] == 'NT_STATUS_OBJECT_NAME_NOT_FOUND': print("No active connections") else: show_sessions(conn) |