aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2022-05-19 10:13:30 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2022-05-19 10:14:44 +0200
commitea81f75e94bf7332436ee86fd6bbbcb2c2dc1438 (patch)
tree267b53acd808a9c847125237e77d99663b5f8c5b
parente17e277a2416221ad899243dd014babca5981b75 (diff)
pySim-shell: explain why we insist on a DF or ADF
-rwxr-xr-xpySim-shell.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pySim-shell.py b/pySim-shell.py
index 06977f0..33c18fd 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -515,6 +515,10 @@ class PySimCommands(CommandSet):
context['COUNT'] += 1
df = self._cmd.rs.selected_file
+ # The currently selected file (not the file we are going to export)
+ # must always be an ADF or DF. From this starting point we select
+ # the EF we want to export. To maintain consistency we will then
+ # select the current DF again (see comment below).
if not isinstance(df, CardDF):
raise RuntimeError(
"currently selected file %s is not a DF or ADF" % str(df))