From b7fc6e6ede3cda133ad612a040531eaf6f0ef060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 24 Oct 2024 17:22:07 +0200 Subject: [PATCH] Apply review suggestions --- pynitrokey/cli/nk3/pcsc_absent.py | 2 +- pynitrokey/cli/nk3/piv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pynitrokey/cli/nk3/pcsc_absent.py b/pynitrokey/cli/nk3/pcsc_absent.py index 480b8b04..c67d7b9b 100644 --- a/pynitrokey/cli/nk3/pcsc_absent.py +++ b/pynitrokey/cli/nk3/pcsc_absent.py @@ -1 +1 @@ -PCSC_ABSENT = "pyscard is not available, please consult https://docs.nitrokey.com/nitrokey3/linux/troubleshooting#pcsc-unavailable for more information" +PCSC_ABSENT = "This command requires the pyscard library that is not available on your system. Please consult https://docs.nitrokey.com/nitrokey3/linux/troubleshooting#pyscard-is-not-available for more information" diff --git a/pynitrokey/cli/nk3/piv.py b/pynitrokey/cli/nk3/piv.py index 85a36d74..18a7efc2 100644 --- a/pynitrokey/cli/nk3/piv.py +++ b/pynitrokey/cli/nk3/piv.py @@ -744,4 +744,4 @@ def read_certificate(format: str, key: str, path: str) -> None: @click.argument("args", nargs=-1, type=click.UNPROCESSED) def piv(args: list[str]) -> None: """Nitrokey PIV App""" - local_critical(PCSC_ABSENT) + local_critical(PCSC_ABSENT, support_hint=False)