utils: Tweak exception handling to stop flake8 complaining
commit98c7a38b711d38ac756ca7e34769eb277904f7d0
authorMartin Schwenke <martin@meltin.net>
Tue, 27 Apr 2021 04:56:20 +0000 (27 14:56 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 20 Jul 2021 04:43:37 +0000 (20 04:43 +0000)
tree8e0ab2897520944adda0ce85ac02c59b31c94ecc
parent12d3e215a6096fc9862642b98dd8bca1421f2cae
utils: Tweak exception handling to stop flake8 complaining

Don't bother with "as e" to avoid warning about unused variable.
Don't use bare "except:" (though pylint still complains about this
version).

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jose A. Rivera <jarrpa@samba.org>
ctdb/utils/etcd/ctdb_etcd_lock