[XS] Change in pysim[master]: saip SmspTpScAddr.get_values_from_pes: allow empty values
neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/42267?usp=email ) Change subject: saip SmspTpScAddr.get_values_from_pes: allow empty values ...................................................................... saip SmspTpScAddr.get_values_from_pes: allow empty values Change-Id: Ibbdd08f96160579238b50699091826883f2e9f5a --- M pySim/esim/saip/personalization.py 1 file changed, 0 insertions(+), 8 deletions(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/67/42267/1 diff --git a/pySim/esim/saip/personalization.py b/pySim/esim/saip/personalization.py index 3c975ef..327dbe6 100644 --- a/pySim/esim/saip/personalization.py +++ b/pySim/esim/saip/personalization.py @@ -630,19 +630,11 @@ continue tp_sc_addr = ef_smsp_dec.get('tp_sc_addr', None) - if not tp_sc_addr: - continue digits = tp_sc_addr.get('call_number', None) - if not digits: - continue ton_npi = tp_sc_addr.get('ton_npi', None) - if not ton_npi: - continue international = ton_npi.get('type_of_number', None) - if international is None: - continue international = (international == 'international') yield { cls.name: cls.tuple_to_str((international, digits)) } -- To view, visit https://gerrit.osmocom.org/c/pysim/+/42267?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: Ibbdd08f96160579238b50699091826883f2e9f5a Gerrit-Change-Number: 42267 Gerrit-PatchSet: 1 Gerrit-Owner: neels <nhofmeyr@sysmocom.de>
participants (1)
-
neels