SPSCommerce / redlock-py

Redis distributed locks in Python
MIT License
572 stars 117 forks source link

Issue-1: Raise `ValueError` and `MultipleRedlockException` when appropriate #15

Closed XiaonuoGantan closed 8 years ago

XiaonuoGantan commented 8 years ago

The methods Redlock.lock and Redlock.unlock should raise either a ValueError or a MultipleRedlockException when communicating with one or several redis masters triggers errors

XiaonuoGantan commented 8 years ago

Changed redis_errors.clear() to del redis_errors[:] to support Python 2