Skip to content

fix crash in bumble.att.Attribute.__repr__#916

Merged
barbibulle merged 1 commit intogoogle:mainfrom
dlech:fix-crash-in-attribute-repr
Apr 27, 2026
Merged

fix crash in bumble.att.Attribute.__repr__#916
barbibulle merged 1 commit intogoogle:mainfrom
dlech:fix-crash-in-attribute-repr

Conversation

@dlech
Copy link
Copy Markdown
Contributor

@dlech dlech commented Apr 25, 2026

If an attribute does not contains a bytes value, it would crash with something like:

AttributeError: 'NoneType' object has no attribute 'hex'

Clearly, the intention here was to use value_str to avoid this possibility.

If an attribute does not contains a bytes value, it would crash with
something like:

    AttributeError: 'NoneType' object has no attribute 'hex'

Clearly, the intention here was to use `value_str` to avoid this
possibility.
@barbibulle barbibulle merged commit 7adf44e into google:main Apr 27, 2026
55 checks passed
@dlech dlech deleted the fix-crash-in-attribute-repr branch April 27, 2026 19:53
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

Successfully merging this pull request may close these issues.

2 participants