Change in pysim[master]: filesystem: fix exception string (fid != name)

dexter gerrit-no-reply at lists.osmocom.org
Tue Mar 16 16:22:00 UTC 2021


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/23376 )


Change subject: filesystem: fix exception string (fid != name)
......................................................................

filesystem: fix exception string (fid != name)

It is better to use the term "fid" instead of "name" when a reserved FID
is detected.

Change-Id: I054f3b3a156f0164c62610cfde1aec2145c20925
Related: OS#4963
---
M pySim/filesystem.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/76/23376/1

diff --git a/pySim/filesystem.py b/pySim/filesystem.py
index 504d66d..bbead96 100644
--- a/pySim/filesystem.py
+++ b/pySim/filesystem.py
@@ -144,7 +144,7 @@
         if child.name in CardFile.RESERVED_NAMES:
             raise ValueError("File name %s is a reserved name" % (child.name))
         if child.fid in CardFile.RESERVED_FIDS:
-            raise ValueError("File fid %s is a reserved name" % (child.fid))
+            raise ValueError("File fid %s is a reserved fid" % (child.fid))
         if child.fid in self.children:
             if ignore_existing:
                 return

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/23376
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I054f3b3a156f0164c62610cfde1aec2145c20925
Gerrit-Change-Number: 23376
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/20210316/bffff57b/attachment.htm>


More information about the gerrit-log mailing list