<p><a href="https://gerrit.osmocom.org/c/pysim/+/25484">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/25484/2/pySim-shell.py">File pySim-shell.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/25484/2/pySim-shell.py@66">Patch Set #2, Line 66:</a> <code style="font-family:monospace,monospace">            print("No card detected!")</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">A more Python'ish way would be to raise exceptions from this function, so you always get nice backtrace output and line numbers together with the error message.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/25484/2/pySim-shell.py@71">Patch Set #2, Line 71:</a> <code style="font-family:monospace,monospace">                print("Could not detect card type!")</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same here, rather throw an exception.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/25484/2/pySim-shell.py@535">Patch Set #2, Line 535:</a> <code style="font-family:monospace,monospace">==</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">is</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/25484/2/pySim-shell.py@535">Patch Set #2, Line 535:</a> <code style="font-family:monospace,monospace">==</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">is</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/25484">change 25484</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/c/pysim/+/25484"/><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-Change-Id: Id2a0f2012b84ce61f5c0c14404df559fca4ddfcd </div>
<div style="display:none"> Gerrit-Change-Number: 25484 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Sun, 19 Sep 2021 17:45:35 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>