neels has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/42259?usp=email )
Change subject: UppAudit: better indicate exception cause
......................................................................
UppAudit: better indicate exception cause
Change-Id: I4d986b89a473a5b12ed56b4710263b034876a33e
---
M pySim/esim/saip/batch.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/59/42259/1
diff --git a/pySim/esim/saip/batch.py b/pySim/esim/saip/batch.py
index 48e2d05..5b17e59 100644
--- a/pySim/esim/saip/batch.py
+++ b/pySim/esim/saip/batch.py
@@ -164,7 +164,7 @@
try:
for valdict in param.get_values_from_pes(pes):
upp_audit.add_values(valdict)
- except (TypeError, ValueError) as e:
+ except Exception as e:
raise ValueError(f'Error during audit for parameter {param}:
{e}') from e
if not additional_sd_keys:
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/42259?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: I4d986b89a473a5b12ed56b4710263b034876a33e
Gerrit-Change-Number: 42259
Gerrit-PatchSet: 1
Gerrit-Owner: neels <[email protected]>