diff --git a/airbrake/handler.py b/airbrake/handler.py index f2ab250..5dd2e60 100644 --- a/airbrake/handler.py +++ b/airbrake/handler.py @@ -37,7 +37,7 @@ def __init__(self, airbrake=None, level=logging.ERROR, project_id=None, api_key= if isinstance(airbrake, Airbrake): self.airbrake = airbrake else: - self.airbrake = Airbrake(project_id=None, api_key=None, environment=None) + self.airbrake = Airbrake(project_id, api_key, environment) def emit(self, record): """Log the record airbrake.io style.