8000 fix: UnboundLocalError in celery · etherscan-io/sentry-python@4dc865e · GitHub
[go: up one dir, main page]

Skip to content

Commit 4dc865e

Browse files
committed
fix: UnboundLocalError in celery
1 parent db7d505 commit 4dc865e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/celery.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ def event_processor(event, hint):
103103

104104
def _capture_exception():
105105
hub = Hub.current
106+
exc_info = sys.exc_info()
107+
106108
if hub.get_integration(CeleryIntegration) is not None:
107-
exc_info = sys.exc_info()
108109
event, hint = event_from_exception(
109110
exc_info,
110111
client_options=hub.client.options,

0 commit comments

Comments
 (0)
0