Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion raven/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ class Sentry(object):
>>> from raven.base import Client
>>> application = Sentry(application, Client())
"""
def __init__(self, application, client):
def __init__(self, application, client=None):
self.application = application
if client is None:
from raven.base import Client
client = Client()
self.client = client

def __call__(self, environ, start_response):
Expand Down