Fix in function name export cert

This commit is contained in:
Mauricio Baeza 2021-01-10 14:17:01 -06:00
parent ace4ef21a7
commit 8e4bf56846
1 changed files with 6 additions and 4 deletions

View File

@ -10472,8 +10472,10 @@ def _change_pass(rfc):
return
def _migrate_cert():
rfc = input('Introduce el RFC: ').strip().upper()
def _migrate_cert(rfc):
if not rfc:
rfc = input('Introduce el RFC: ').strip().upper()
if not rfc:
msg = 'El RFC es requerido'
log.error(msg)
@ -10563,8 +10565,8 @@ def main(args):
_export_documents()
return
if args.export_cert:
_export_cert()
if args.migrate_cert:
_migrate_cert(args.rfc)
return
return