python-zk/kazoo — pull request #5 by bobveznat (2012-07-23 23:13:08+00:00)
Title: Don't turn TypeError into SessionExpired

If a programmer screws up and sends bad data to zookeeper, especially as
part of set_config, be sure that that relatively simple TypeError is
allowed to propagate to the caller. The old behavior was that a
misleading SessionExpired error was sent to the caller.

I understand that _safe_call is called by a whole host of other routines and I may have oversimplified this patch. I'm hopeful that this patch or something like it that keeps the original TypeError will be acceptable.