#NEWLINE# def log_to_sentry( message , **kwargs ) : #NEWLINE# #INDENT# if ( not settings . SENTRY_DSN ) : #NEWLINE# #INDENT# return logger . warn ( 'send_to_raven called with no SENTRY_DSN' ) #NEWLINE# #UNINDENT# return sentry . captureMessage ( message , extra = kwargs )