add try...except to fix some bugs found on django.log