datastax/python-driver — pull request #31 by tbarbugli (2013-09-16 13:33:30+00:00)
Title: missing connection check before returning it

checking if the connection still exists solved lots of random AttributeError exceptions 'NoneType' object has no attribute 'lock'

looking few lines up seems like this check is necessary