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/.
dexter gerrit-no-reply at lists.osmocom.orgdexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/15495 Change subject: pySim-prog: check if CSV file exists ...................................................................... pySim-prog: check if CSV file exists At the moment we do not chack if the CSV file exists at all. This may lead into a crash while programming the card. Lets check the CSV file before we start. Change-Id: I2643996282d88e512c17901ab0e1181677d5dd6c Related: SYS#4654 --- M pySim-prog.py 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/95/15495/1 diff --git a/pySim-prog.py b/pySim-prog.py index 55634a5..a462489 100755 --- a/pySim-prog.py +++ b/pySim-prog.py @@ -708,6 +708,13 @@ # Create command layer scc = SimCardCommands(transport=sl) + # If we use a CSV file as data input, check if the CSV file exists. + print "Using CSV file as data input: " + str(opts.read_csv) + if opts.source == 'csv': + if not os.path.isfile(opts.read_csv): + print "CSV file not found!" + sys.exit(1) + # Batch mode init init_batch(opts) -- To view, visit https://gerrit.osmocom.org/c/pysim/+/15495 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I2643996282d88e512c17901ab0e1181677d5dd6c Gerrit-Change-Number: 15495 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190912/4772ce23/attachment.htm>