fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/42389?usp=email )


Change subject: esim/saip: raise an exception properly
......................................................................

esim/saip: raise an exception properly

Change-Id: Ia3749c02120fdc16e556214d0461cbeca032447b
---
M pySim/esim/saip/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/89/42389/1

diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py
index bdbbccf..9fa1d28 100644
--- a/pySim/esim/saip/__init__.py
+++ b/pySim/esim/saip/__init__.py
@@ -441,7 +441,7 @@
             elif k == 'fillFileContent':
                 stream.write(v)
             else:
-                return ValueError("Unknown key '%s' in tuple list" % k)
+                raise ValueError("Unknown key '%s' in tuple list" % k)
         return stream.getvalue()

     def file_content_to_tuples(self, optimize:bool = False) -> List[Tuple]:

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/42389?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: Ia3749c02120fdc16e556214d0461cbeca032447b
Gerrit-Change-Number: 42389
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to