mirror of
https://github.com/google/bumble.git
synced 2026-05-09 04:08:02 +00:00
Merge pull request #916 from dlech/fix-crash-in-attribute-repr
fix crash in `bumble.att.Attribute.__repr__`
This commit is contained in:
@@ -1083,7 +1083,7 @@ class Attribute(utils.EventEmitter, Generic[_T]):
|
|||||||
else:
|
else:
|
||||||
value_str = str(self.value)
|
value_str = str(self.value)
|
||||||
if value_str:
|
if value_str:
|
||||||
value_string = f', value={self.value.hex()}'
|
value_string = f', value={value_str}'
|
||||||
else:
|
else:
|
||||||
value_string = ''
|
value_string = ''
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user