two small hotfixes

This commit is contained in:
Gilles Boccon-Gibod
2023-03-05 20:24:16 -08:00
parent ca063eda0b
commit 97a0e115ae
2 changed files with 12 additions and 4 deletions

View File

@@ -1421,7 +1421,11 @@ class HCI_Constant:
# -----------------------------------------------------------------------------
class HCI_Error(ProtocolError):
def __init__(self, error_code):
super().__init__(error_code, 'hci', HCI_Constant.error_name(error_code))
super().__init__(
error_code,
error_namespace='hci',
error_name=HCI_Constant.error_name(error_code),
)
# -----------------------------------------------------------------------------