Skip to content

Commit 8d37b95

Browse files
committed
Fixed python 2.7 support
1 parent 1ec6ed3 commit 8d37b95

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sentry_sdk/integrations/huey.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import absolute_import
2+
13
import sys
24
from datetime import datetime
35

@@ -10,6 +12,7 @@
1012

1113
if MYPY:
1214
from typing import Any, Callable, Optional, Union, TypeVar
15+
1316
from sentry_sdk._types import EventProcessor, Event, Hint
1417
from sentry_sdk.utils import ExcInfo
1518

tests/integrations/huey/test_huey.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def flush_huey_tasks(init_huey):
2929
huey.flush()
3030

3131

32-
def execute_huey_task(huey, func, *args, exceptions=None, **kwargs):
32+
def execute_huey_task(huey, func, *args, **kwargs):
33+
exceptions = kwargs.pop("exceptions", None)
3334
result = func(*args, **kwargs)
3435
task = huey.dequeue()
3536
if exceptions is not None:

0 commit comments

Comments
 (0)