Add try in cert

This commit is contained in:
Mauricio Baeza 2020-12-31 21:55:01 -06:00
parent 9423aeef6c
commit cf189b08fa
1 changed files with 5 additions and 1 deletions

View File

@ -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):