From b24e109a3c349c8c2f2b17980b008af1b5228448 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Thu, 16 Feb 2023 22:50:53 +0100 Subject: [PATCH] Fix error message when no card is detected. Signed-off-by: Pol Henarejos --- tools/pico-hsm-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pico-hsm-tool.py b/tools/pico-hsm-tool.py index 4ddbbe6..390cce1 100644 --- a/tools/pico-hsm-tool.py +++ b/tools/pico-hsm-tool.py @@ -606,7 +606,7 @@ def main(args): card.connection.connect() except CardRequestTimeoutException: - print('time-out: no card inserted during last 10s') + raise Exception('time-out: no card inserted during last 10s') if (args.pin): login(card, args)