From cf189b08fa00bd49844db325d8af2b595071c5d4 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Thu, 31 Dec 2020 21:55:01 -0600 Subject: [PATCH] Add try in cert --- source/app/controllers/cfdi_cert.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/app/controllers/cfdi_cert.py b/source/app/controllers/cfdi_cert.py index 49b72dd..295711b 100644 --- a/source/app/controllers/cfdi_cert.py +++ b/source/app/controllers/cfdi_cert.py @@ -16,7 +16,11 @@ from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding -from .conf import TOKEN +try: + from .conf import TOKEN +except ImportError: + TOKEN = '' + print('Agrega el TOKEN al archivo conf.py, obligatorio en v1.41.0') class SATCertificate(object):