This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/25790 )
Change subject: 51.011: Fix EF_SST decoder for services > table description
......................................................................
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
---
M pySim/ts_51_011.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/90/25790/1
diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py
index 65be06a..70629f7 100644
--- a/pySim/ts_51_011.py
+++ b/pySim/ts_51_011.py
@@ -513,7 +513,7 @@
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,
}
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/25790
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ic089f9632a936bdbedd2344442678c5bf9797713
Gerrit-Change-Number: 25790
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211014/348b5783/attachment.htm>