  
          try:
              # Try to find an appropriate error template
              return self.resolve_template(template_names)
          except:
              # Fall back to using eg '404 Not Found'
              return Template('%d %s' % (response.status_code,
                                         response.status_text.title()))
  
  
 
</s> remove except:
 </s> add except ImportError: </s> remove     except:  # Django 1.3
 </s> add     except ImportError:  # Django 1.3 </s> remove             except:
 </s> add             except Exception: </s> remove         except:
 </s> add         except NoReverseMatch: </s> remove         except:
 </s> add         except Exception:
        except Exception:
  
          try:
              # Try to find an appropriate error template
              return self.resolve_template(template_names)
        except Exception:
              # Fall back to using eg '404 Not Found'
              return Template('%d %s' % (response.status_code,
                                         response.status_text.title()))
  
  
keep keep keep 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/renderers.py