From 68639368f24fdce09f648f69d1d1c913038ea57a Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Fri, 3 Jan 2025 15:33:41 +0900 Subject: [PATCH] - exit if public key is not available. --- samples/test_osnma.py | 1 + samples/test_qznma.py | 1 + 2 files changed, 2 insertions(+) diff --git a/samples/test_osnma.py b/samples/test_osnma.py index 8e304fa..1e3d3c7 100644 --- a/samples/test_osnma.py +++ b/samples/test_osnma.py @@ -25,6 +25,7 @@ if not os.path.exists('../data/pubkey/osnma/'+mt_file): print('please install OSNMA_MerkleTree*.xml from EUSPA.') + exit(-1) nma = om.osnma(mt_file) diff --git a/samples/test_qznma.py b/samples/test_qznma.py index 8da41b3..4fd4561 100644 --- a/samples/test_qznma.py +++ b/samples/test_qznma.py @@ -22,6 +22,7 @@ if not os.path.exists('../data/pubkey/qznma/002.der'): print('please install public key file from QSS.') + exit(-1) dtype = [('wn', 'int'), ('tow', 'float'), ('prn', 'int'), ('type', 'int'), ('len', 'int'), ('nav', 'S512')]