fix the puzzle try..catch in contrib.django.models's get_client

The scope of try ..catch is too large which would lead to ``RuntimeError: maximum recursion depth exceeded`` when I don't install gevent.