mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-02-07 19:18:23 +00:00
Small fix in ModuleNotFoundError handling.
This commit is contained in:
parent
4536589e2c
commit
1a6cfd17cb
1 changed files with 3 additions and 3 deletions
|
|
@ -24,17 +24,17 @@ try:
|
|||
from smartcard.CardType import AnyCardType
|
||||
from smartcard.CardRequest import CardRequest
|
||||
from smartcard.Exceptions import CardRequestTimeoutException
|
||||
from cvc.certificates import CVC
|
||||
except:
|
||||
except ModuleNotFoundError:
|
||||
print('ERROR: smarctard module not found! Install pyscard package.\nTry with `pip install pyscard`')
|
||||
sys.exit(-1)
|
||||
|
||||
try:
|
||||
from cvc.certificates import CVC
|
||||
from cvc.asn1 import ASN1
|
||||
from cvc.oid import oid2scheme
|
||||
from cvc.utils import scheme_rsa
|
||||
from cryptography.hazmat.primitives.asymmetric import ec
|
||||
except:
|
||||
except ModuleNotFoundError:
|
||||
print('ERROR: cvc module not found! Install pycvc package.\nTry with `pip install pycvc`')
|
||||
sys.exit(-1)
|
||||
import json
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue