def __getattr__(self, attr):
        if attr == "connection":
            assert not self.connected
            self.connect()
            return getattr(self, attr)
        raise AttributeError(attr)
dataset/ETHPy150Open r4fek/django-cassandra-engine/django_cassandra_engine/base/__init__.py/DatabaseWrapper.__getattr__/original