pysim/pySim/transport
Philipp Maier 6bfa8a8533 pySim-shell: print device info in case an exception occurs
When an exception occurs while initializing or handling the card we
print a traceback, but we do not print any info that allows us to
identify the device that was involved when the exception occurred. Let's
include the device path or number in the error message before we print
the traceback.

In order to make it easier to print the device information, let's add a
__str__() method to all of our devices. This method shall return the
device number or path.

Related: OS#6210
Change-Id: I200463e692245da40ea6d5b609bfc0ca02d15bdb
2023-10-10 11:51:08 +02:00
..
__init__.py pySim-shell: print device info in case an exception occurs 2023-10-10 11:51:08 +02:00
calypso.py pySim-shell: print device info in case an exception occurs 2023-10-10 11:51:08 +02:00
modem_atcmd.py pySim-shell: print device info in case an exception occurs 2023-10-10 11:51:08 +02:00
pcsc.py pySim-shell: print device info in case an exception occurs 2023-10-10 11:51:08 +02:00
serial.py pySim-shell: print device info in case an exception occurs 2023-10-10 11:51:08 +02:00