Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Allow extra to be None in breadcrumbs processing #1309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joker-at-work
Copy link

Sometimes, extra is passed in as a default parameter of another
function and can therefore be None. This fixes:

Traceback (most recent call last):
  File "raven/breadcrumbs.py", line 77, in get_buffer
	processor(payload)
  File "raven/breadcrumbs.py", line 143, in processor
	data_value.update(extra)
TypeError: 'NoneType' object is not iterable

Sometimes, `extra` is passed in as a default parameter of another
function and can therefore be `None`. This fixes:

	Traceback (most recent call last):
	  File "raven/breadcrumbs.py", line 77, in get_buffer
		processor(payload)
	  File "raven/breadcrumbs.py", line 143, in processor
		data_value.update(extra)
	TypeError: 'NoneType' object is not iterable
@david-volantio
Copy link

The issue addressed by this PR is preventing my team from upgrading to 6.10.0. The issue in my particular project arises when calling captureMessage (that I know of - I haven't exhaustively testing every call in my project) without extra, so I'm not sure where extra is being defaulted to None but it would seem to be between captureMessage and breadcrumb processing.

@ashwoods
Copy link
Contributor

ashwoods commented Jun 11, 2020

@david-volantio if you are able to upgrade, any reason for not being able to give the new sdk a go? https://github.com/getsentry/sentry-python

@david-volantio
Copy link

@ashwoods a fair point - I was just hoping we could move to the latest release but updating to sentry-python is definitely on our roadmap. thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants