jplana / python-etcd

A python client for etcd
Other
523 stars 210 forks source link

Locking module _acquired timeout=None fails at comparison #171

Closed krodyrobi closed 7 years ago

krodyrobi commented 8 years ago
"etcd/lock.py", line 117, in _acquired
    t = max(0, timeout)
TypeError: unorderable types: NoneType() > int()

It appears that all functions have timeout defaulting to None except this one.

lavagetto commented 7 years ago

Yes, a timeout of none is not acceptable for locking. 0 must be specified.