def __init__(self):
        try:
            import raven
            self.enabled = True
            dsn = os.environ['SPLASH_SENTRY_DSN']
            if dsn.startswith('https'):
                dsn = dsn.replace('https://', 'twisted+https://')
            self.client = raven.Client(dsn)
        except (ImportError, __HOLE__):
            self.enabled = False
dataset/ETHPy150Open scrapinghub/splash/splash/sentry.py/SentryLogger.__init__