tomchristie/django-rest-framework — pull request #561 by mjtamlyn (2013-01-07 12:53:24+00:00)
Title: When importing settings, don't suppress any old error which happens

For example when importing a custom pagination class, if another error is found in the file (e.g. a `1/0`) then it only gives the "can't import" error.

The problem is the plain `except` clause here: https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/settings.py#L118

This should probably be `except ImportError`, but even then it should always print the original message as well to bubble errors up - for example if the problem in the file is no the absence of `MyCustomPaginationSerializer`, but that I typed `from rest_framework import does_not_exist` at the top.