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/.
Max gerrit-no-reply at lists.osmocom.orgMax has uploaded this change for review. ( https://gerrit.osmocom.org/12462 Change subject: Don't try to parse result if select_file() failed ...................................................................... Don't try to parse result if select_file() failed Change-Id: I25b859374e33654e58d07061926bf8529eab87f3 --- M pySim/commands.py 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/62/12462/1 diff --git a/pySim/commands.py b/pySim/commands.py index 73c2247..faae61a 100644 --- a/pySim/commands.py +++ b/pySim/commands.py @@ -109,6 +109,8 @@ if not hasattr(type(ef), '__iter__'): ef = [ef] r = self.select_file(ef) + if len(r[-1]) == 0: + return (None, None) if length is None: length = self.__len(r) - offset pdu = self.cla_byte + 'b0%04x%02x' % (offset, (min(256, length) & 0xff)) -- To view, visit https://gerrit.osmocom.org/12462 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I25b859374e33654e58d07061926bf8529eab87f3 Gerrit-Change-Number: 12462 Gerrit-PatchSet: 1 Gerrit-Owner: Max <msuraev at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190103/e1cfdf2d/attachment.htm>