<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9968">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pySim-read: Print exception when reading of EF.MSISDN fails<br><br>At the moment the exception is catched, but there is only a vague<br>error message printed. However, the exception string usually tells<br>us the status word, so it is very valuable to see it. Lets make<br>sure that the exception string is printed here.<br><br>Change-Id: Icb30470b1c0eee6a15fc028da820e92bf9ded27a<br>---<br>M pySim-read.py<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/68/9968/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim-read.py b/pySim-read.py</span><br><span>index 5ca39ee..561a498 100755</span><br><span>--- a/pySim-read.py</span><br><span>+++ b/pySim-read.py</span><br><span>@@ -134,8 +134,8 @@</span><br><span>                                 print("MSISDN: Not available")</span><br><span>             else:</span><br><span>                        print("MSISDN: Can't read, response code = %s" % (sw,))</span><br><span style="color: hsl(0, 100%, 40%);">-   except:</span><br><span style="color: hsl(0, 100%, 40%);">-         print "MSISDN: Can't read. Probably not existing file"</span><br><span style="color: hsl(120, 100%, 40%);">+  except Exception as e:</span><br><span style="color: hsl(120, 100%, 40%);">+                print "HPLMNAcT: Can't read file -- " + str(e)</span><br><span> </span><br><span>     # Done for this card and maybe for everything ?</span><br><span>      print "Done !\n"</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9968">change 9968</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/9968"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Icb30470b1c0eee6a15fc028da820e92bf9ded27a </div>
<div style="display:none"> Gerrit-Change-Number: 9968 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>