Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'event_source' referenced before assignment #2427

Closed
sentryk8sonalabsorg bot opened this issue May 23, 2023 · 0 comments
Assignees

Comments

@sentryk8sonalabsorg
Copy link

Sentry Issue: ONADATA-STAGING-EF

UnboundLocalError: local variable 'event_source' referenced before assignment
(11 additional frame(s) were not displayed)
...
  File "onadata/apps/api/viewsets/xform_submission_viewset.py", line 152, in handle_exception
    return super().handle_exception(exc)
  File "onadata/apps/api/viewsets/xform_submission_viewset.py", line 124, in create
    return super().create(request, *args, **kwargs)
  File "onadata/libs/utils/analytics.py", line 183, in decorator
    self._track_object_event(return_value, request)
  File "onadata/libs/utils/analytics.py", line 165, in _track_object_event
    tracking_properties = self.get_request_origin(
  File "onadata/libs/utils/analytics.py", line 153, in get_request_origin
    tracking_properties.update({"from": event_source})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant