Improve assertion here so that it doesn't cause change of behavior if assertions are disabled.
Improve assertion here so that it doesn't cause change of behavior if assertions are disabled.

ionelmc/python-redis-lock,buildingenergy/python-redis-lock