Skip to content

KeyError when i get subscription list #30

@gu1llohm

Description

@gu1llohm

Hey hey !!

First, thanks for your job, this is amazing ! I tested it on a linux machine connected to a tons of Dante devices.
When i'm trying netaudio subscription list, not every time, i get in the list, a lot of :

timed out getting mDNS service
or
Failed to get a service by type.
or
Failed to get Dante device name

then a correct list of devices, and for finishing :

KeyError

69

at /usr/local/lib/python3.9/dist-packages/netaudio/dante/subscription.py:25 in status_text
21│
22│ return text
23│
24│ def status_text(self):
→ 25│ return subscription_status.labels[self.status_code]
26│
27│ def to_json(self):
28│ as_json = {
29│ "rx_channel": self.rx_channel_name,

let says, this error is happening 4 / 10.

Do you have an idea how to workaround this ?

Thanks for your help !

G.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions