  from __future__ import unicode_literals
  from django.core.exceptions import ObjectDoesNotExist, ValidationError
  from django.core.urlresolvers import resolve, get_script_prefix
  from django import forms
  from django.forms import widgets
  from django.forms.models import ModelChoiceIterator
  from django.utils.translation import ugettext_lazy as _
 
</s> remove     except:  # Django 1.3
 </s> add     except ImportError:  # Django 1.3 </s> remove except:
 </s> add except ImportError: </s> remove except:
 </s> add except ImportError: </s> remove except:
 </s> add except ImportError:
from django.core.exceptions import ObjectDoesNotExist, ValidationError, NoReverseMatch
  from __future__ import unicode_literals
from django.core.exceptions import ObjectDoesNotExist, ValidationError, NoReverseMatch
  from django.core.urlresolvers import resolve, get_script_prefix
  from django import forms
  from django.forms import widgets
  from django.forms.models import ModelChoiceIterator
  from django.utils.translation import ugettext_lazy as _
keep replace keep keep keep keep keep
 Purge naked excepts.

Most of these had obvious exceptions which would be thrown. Some I'm not
sure about but they should at least catch only Exception so as not to
ignore SystemExit and other inappropriate Error classes. 
rest_framework/relations.py