#NEWLINE# def get_exception_reporter_filter( request ) : #NEWLINE# #INDENT# global default_exception_reporter_filter #NEWLINE# if ( default_exception_reporter_filter is None ) : #NEWLINE# #INDENT# modpath = settings . DEFAULT_EXCEPTION_REPORTER_FILTER #NEWLINE# ( modname , classname ) = modpath . rsplit ( '.' , 1 ) #NEWLINE# try : #NEWLINE# #INDENT# mod = import_module ( modname ) #NEWLINE# #UNINDENT# except ImportError as e : #NEWLINE# #INDENT# raise ImproperlyConfigured ( ( 'Error importing default exception reporter filter %s: "%s"' % ( modpath , e ) ) ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# default_exception_reporter_filter = getattr ( mod , classname ) ( ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise ImproperlyConfigured ( ( 'Default exception reporter filter module "%s" does not define a "%s" class' % ( modname , classname ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if modname : #NEWLINE# #INDENT# return getattr ( request , 'exception_reporter_filter' , default_exception_reporter_filter ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return default_exception_reporter_filter