def sentrytest(self):
        """return true if we managed to send a sample raven exception"""
        if not (self.config.sentry and self.config.sentry.dsn):
            raise SentryConfigurationError('sentry dsn not configured')

        try:
            version = raven.fetch_package_version('crontabber')
        except Exception:
            version = None
            self.config.logger.warning(
                'Unable to extract version of crontabber',
                exc_info=True
            )
        client = raven.Client(
            dsn=self.config.sentry.dsn,
            release=version
        )
        identifier = client.captureMessage(
            'Sentry test sent from crontabber'
        )
        self.config.logger.info(
            'Sentry successful identifier: %s', identifier
        )
        return True
def sentrytest ( self ) : if not ( self . config . sentry and self . config . sentry . dsn ) : raise SentryConfigurationError ( 'sentry dsn not configured' ) try : version = raven . fetch_package_version ( 'crontabber' ) except Exception : version = None self . config . logger . warning ( 'Unable to extract version of crontabber' , exc_info = True ) client = raven . Client ( dsn = self . config . sentry . dsn , release = version ) identifier = client . captureMessage ( 'Sentry test sent from crontabber' ) self . config . logger . info ( 'Sentry successful identifier: %s' , identifier ) return True
return true if we managed to send a sample raven exception