51.011: Fix EF_SST decoder for services > table description

Before:
EXCEPTION of type 'KeyError' occurred with message: '60'

After:
    "60": {
        "description": null,
        "allocated": false,
        "activated": false
    }

Change-Id: Ic089f9632a936bdbedd2344442678c5bf9797713
This commit is contained in:
Harald Welte 2021-10-14 16:13:23 +02:00
parent 1aae4a0b88
commit f898c28284
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ class EF_ServiceTable(TransparentEF):
bit_offset = (i % 4) * 2
bits = (byte >> bit_offset) & 3
ret[service_nr] = {
'description': self.table[service_nr] or None,
'description': self.table[service_nr] if service_nr in self.table else None,
'allocated': True if bits & 1 else False,
'activated': True if bits & 2 else False,
}