@@ -302,7 +302,7 @@ def main():
302302 print (" /dbf: lee y almacena la información en tablas DBF" )
303303 print ()
304304 print ("Ver rece.ini para parámetros de configuración (URL, certificados, etc.)" )
305- # sys.exit(0)
305+ return
306306
307307 config = abrir_conf (CONFIG_FILE , DEBUG )
308308 cert = config .get ("WSAA" , "CERT" )
@@ -380,7 +380,7 @@ def main():
380380 print ("AppServerStatus" , ws .AppServerStatus )
381381 print ("DbServerStatus" , ws .DbServerStatus )
382382 print ("AuthServerStatus" , ws .AuthServerStatus )
383- # sys.exit(0)
383+ return
384384
385385 if "/formato" in sys .argv :
386386 from .formatos import formato_dbf
@@ -409,7 +409,7 @@ def main():
409409 claves , campos = formato_dbf .definir_campos (formato )
410410 for campo in campos :
411411 print (" * Campo: %s" % (campo ,))
412- # sys.exit(0)
412+ return
413413
414414 # obteniendo el TA
415415 from .wsaa import WSAA
@@ -531,7 +531,7 @@ def main():
531531 },
532532 open (salida , "w" ),
533533 )
534- # sys.exit(0)
534+ return
535535
536536 if "/get" in sys .argv :
537537 print ("Recuperar comprobante:" )
@@ -568,7 +568,7 @@ def main():
568568 },
569569 open (salida , "w" ),
570570 )
571- # sys.exit(0)
571+ return
572572
573573 if "/ctz" in sys .argv :
574574 i = sys .argv .index ("/ctz" )
@@ -579,7 +579,7 @@ def main():
579579 ctz = ws .GetParamCtz (moneda_id )
580580 print ("Cotizacion: " , ctz )
581581 print (ws .ErrMsg )
582- # sys.exit(0)
582+ return
583583
584584 if "/monctz" in sys .argv :
585585 i = sys .argv .index ("/monctz" )
@@ -590,7 +590,7 @@ def main():
590590 ctz = ws .GetParamMonConCotizacion (fecha )
591591 print ("\n " .join (ctz ))
592592 print (ws .ErrMsg )
593- # sys.exit(0)
593+ return
594594
595595 f_entrada = f_salida = None
596596 try :
@@ -608,7 +608,7 @@ def main():
608608 f_salida .close ()
609609 if XML :
610610 depurar_xml (ws .client )
611- # sys.exit(0)
611+ return
612612
613613 except Exception as e :
614614 print (str (e ).encode ("ascii" , "ignore" ))
0 commit comments