From 544f985d411eef04a17439924e2872020b871dee Mon Sep 17 00:00:00 2001 From: Atala Date: Tue, 27 Dec 2016 16:42:43 +0100 Subject: [PATCH] fix: set HTTP transport as default for sentry --- rq/cli/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rq/cli/cli.py b/rq/cli/cli.py index fb0dc8e..27dd78c 100755 --- a/rq/cli/cli.py +++ b/rq/cli/cli.py @@ -199,8 +199,9 @@ def worker(url, config, burst, name, worker_class, job_class, queue_class, conne # Should we configure Sentry? if sentry_dsn: from raven import Client + from raven.transport.http import HTTPTransport from rq.contrib.sentry import register_sentry - client = Client(sentry_dsn) + client = Client(sentry_dsn, transport=HTTPTransport) register_sentry(client, w) w.work(burst=burst)