raven-python
raven-python copied to clipboard
Allow `extra` to be None in breadcrumbs processing
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
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.
@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
@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!