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>
break
os.kill(ppid, 0)
time.sleep(etcd_config['lock_refresh'])
- except (OSError, SystemExit) as e:
+ except (OSError, SystemExit):
if lock is not None and lock.is_acquired:
lock.release()
- except:
+ except Exception:
print_nonl(3)
if logging.getLogger().getEffectiveLevel() == logging.DEBUG:
raise