Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit 1a046d0

Browse files
committed
Add additional handling when reading named apps
Fixes #16
1 parent 0b0b5f8 commit 1a046d0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

emv/command/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ def info(ctx):
137137
click.secho(
138138
"1PAY.SYS.DDF01 not available (this is normal on some cards)", fg="yellow"
139139
)
140+
except Exception as e:
141+
click.secho(
142+
"Error reading 1PAY.SYS.DDF01 (may be normal): " + str(e), fg="red"
143+
)
140144

141145
click.secho("\n2PAY.SYS.DDF01 (Index of apps for contactless payments)", bold=True)
142146
try:
@@ -145,6 +149,10 @@ def info(ctx):
145149
click.secho(
146150
"2PAY.SYS.DDF01 not available (this is normal on some cards)", fg="yellow"
147151
)
152+
except Exception as e:
153+
click.secho(
154+
"Error reading 2PAY.SYS.DDF01 (may be normal): " + str(e), fg="red"
155+
)
148156

149157
for app in apps:
150158
click.secho(

0 commit comments

Comments
 (0)