worker-automate-hub 0.5.799__tar.gz → 0.5.800__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/PKG-INFO +1 -1
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/pyproject.toml +1 -1
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/abertura_livros_fiscais.py +106 -25
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/README.md +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/ahead_service.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/client.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/datalake_service.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/helpers/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/rdp_service.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/rpa_fila_service.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/rpa_historico_service.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/webhook_service.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/cli.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/config/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/config/settings.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/config.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/core/so_manipulation.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/deprecation.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/rate_limit.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/repeat.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/retry.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/singleton.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/timeit.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dao/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dao/rpa_fila.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dao/rpa_robo.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dto/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dto/rpa_processo_rdp_dto.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dto/rpa_sap_dto.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/cte_manual.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/cte_xml.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/descartes.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/devolucao_ctf.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/devolucao_ctf_35.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_cte_1353.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_cte_333.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_22.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_37.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_503.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/extracao_saldo_estoque.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/extracao_saldo_estoque_fiscal.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/fidc_retorno_cobranca.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos_novo.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/integracao_contabil.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/integracao_contabil_generica.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/lancamento_pis_cofins.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/lancamento_rateio.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/notas_faturamento_sap.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/opex_capex.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/playground.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/jobs/transferencias.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/task_definitions.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/task_executor.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/__init__.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/env.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/logger.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/toast.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/updater.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/util.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
- {worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/worker.py +0 -0
@@ -84,7 +84,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
84
84
|
# Fecha a instancia do emsys - caso esteja aberta
|
85
85
|
await kill_all_emsys()
|
86
86
|
|
87
|
-
app = Application(backend="win32").start("C:\\Rezende\\EMSys3\\
|
87
|
+
app = Application(backend="win32").start("C:\\Rezende\\EMSys3\\EMSysFiscal_39.exe")
|
88
88
|
warnings.filterwarnings(
|
89
89
|
"ignore",
|
90
90
|
category=UserWarning,
|
@@ -202,6 +202,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
202
202
|
saida_checkbox.click_input()
|
203
203
|
|
204
204
|
console.print("Aguardar marcar caixa de saida")
|
205
|
+
# imagem = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\abertura_livros\saida_marcada.png"
|
205
206
|
imagem = "assets\\abertura_livros\\saida_marcada.png"
|
206
207
|
|
207
208
|
tempo_limite = 600 # 10 minutos
|
@@ -338,6 +339,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
338
339
|
await worker_sleep(5)
|
339
340
|
|
340
341
|
console.print("Aguardar o término de carregar")
|
342
|
+
# imagem = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\abertura_livros\livros_incluidos.png"
|
341
343
|
imagem = "assets\\abertura_livros\\livros_incluidos.png"
|
342
344
|
|
343
345
|
tempo_limite = 1200 # 20 minutos
|
@@ -558,7 +560,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
558
560
|
|
559
561
|
console.print("Clicando no botão incluir apuração")
|
560
562
|
# Clicar em incluir apuração
|
561
|
-
# imagem = "assets
|
563
|
+
# imagem = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\abertura_livros\btn_incluir_apuracao.png"
|
562
564
|
imagem = "assets\\abertura_livros\\btn_incluir_apuracao.png"
|
563
565
|
|
564
566
|
# Tenta localizar a imagem na tela
|
@@ -567,36 +569,114 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
567
569
|
)
|
568
570
|
|
569
571
|
if localizacao:
|
570
|
-
print(f"Imagem incluir apuração encontrado em: {localizacao}")
|
572
|
+
console.print(f"Imagem incluir apuração encontrado em: {localizacao}")
|
571
573
|
pyautogui.moveTo(localizacao)
|
572
574
|
pyautogui.click()
|
575
|
+
console.print("Botão incluir clicado com sucesso")
|
573
576
|
|
574
|
-
await worker_sleep(
|
575
|
-
|
576
|
-
imagem = "assets\\abertura_livros\\aviso_erro.png"
|
577
|
+
await worker_sleep(2)
|
577
578
|
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
)
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
579
|
+
desk = Desktop(backend="win32")
|
580
|
+
dlg = None
|
581
|
+
t_end = time.time() + 8.0 # até 8s procurando a janela
|
582
|
+
while time.time() < t_end:
|
583
|
+
try:
|
584
|
+
# variações: Aviso | Atenção | Erro
|
585
|
+
wins = desk.windows(title_re=".*(Aviso|Aten[cç][aã]o|Erro).*", visible_only=True)
|
586
|
+
if wins:
|
587
|
+
dlg = wins[0]
|
588
|
+
break
|
589
|
+
except Exception:
|
590
|
+
pass
|
591
|
+
time.sleep(0.25)
|
592
|
+
|
593
|
+
if dlg:
|
594
|
+
console.print("Janela 'Aviso' detectada. Capturando texto e screenshot...")
|
595
|
+
|
596
|
+
# === 2) Captura de screenshot da janela ===
|
597
|
+
try:
|
598
|
+
# pasta de prints (ajuste se quiser outra)
|
599
|
+
prints_dir = os.path.join(os.getcwd(), "prints")
|
600
|
+
os.makedirs(prints_dir, exist_ok=True)
|
601
|
+
ts = datetime.now().strftime("%Y%m%d_%H%M%S")
|
602
|
+
screenshot_path = os.path.join(prints_dir, f"aviso_{ts}.png")
|
603
|
+
dlg.set_focus()
|
604
|
+
img = dlg.capture_as_image()
|
605
|
+
img.save(screenshot_path)
|
606
|
+
console.print(f"Screenshot salvo: {screenshot_path}")
|
607
|
+
except Exception as e:
|
608
|
+
screenshot_path = None
|
609
|
+
console.print(f"Falha ao salvar screenshot do 'Aviso': {e}")
|
610
|
+
|
611
|
+
# === 3) Lê todo o texto da janela ===
|
612
|
+
texto_aviso = ""
|
613
|
+
try:
|
614
|
+
partes = []
|
615
|
+
for ctrl in dlg.descendants():
|
616
|
+
try:
|
617
|
+
t = ctrl.window_text()
|
618
|
+
if t and t.strip():
|
619
|
+
partes.append(t.strip())
|
620
|
+
except Exception:
|
621
|
+
pass
|
622
|
+
texto_aviso = " ".join(dict.fromkeys(partes)) # remove duplicados mantendo ordem
|
623
|
+
console.print(f"Texto do Aviso: {texto_aviso}")
|
624
|
+
except Exception as e:
|
625
|
+
console.print(f"Falha ao coletar texto do 'Aviso': {e}")
|
626
|
+
|
627
|
+
# === 4) Validação do conteúdo (edite/adicione frases-chave conforme seu caso) ===
|
628
|
+
FRASES_ERRO = [
|
629
|
+
"O período para apuração informado",
|
630
|
+
"situação diferente de confirmado",
|
631
|
+
]
|
632
|
+
|
633
|
+
contem_msg_erro = any(frase.lower() in texto_aviso.lower() for frase in FRASES_ERRO)
|
634
|
+
|
635
|
+
if contem_msg_erro:
|
636
|
+
console.print("Confirmação de erro pelo texto da janela 'Aviso'. Retornando falha.")
|
637
|
+
retorno_msg = "Erro ao Incluir apuração."
|
638
|
+
if texto_aviso:
|
639
|
+
retorno_msg += f" Detalhe: {texto_aviso}"
|
640
|
+
if screenshot_path:
|
641
|
+
retorno_msg += f" | Print: {screenshot_path}"
|
642
|
+
|
643
|
+
return RpaRetornoProcessoDTO(
|
644
|
+
sucesso=False,
|
645
|
+
retorno=retorno_msg,
|
646
|
+
status=RpaHistoricoStatusEnum.Falha,
|
647
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)],
|
648
|
+
)
|
649
|
+
else:
|
650
|
+
console.print("Janela 'Aviso' não contém mensagem de erro mapeada. Seguindo fluxo.")
|
651
|
+
# (Opcional) você pode clicar no 'OK' e continuar:
|
652
|
+
try:
|
653
|
+
# tenta clicar em botão OK se existir
|
654
|
+
for c in dlg.descendants():
|
655
|
+
try:
|
656
|
+
if c.window_text().strip().lower() in ("ok", "&ok"):
|
657
|
+
c.click_input()
|
658
|
+
break
|
659
|
+
except Exception:
|
660
|
+
pass
|
661
|
+
except Exception:
|
662
|
+
pass
|
663
|
+
# não retorna aqui; deixa seguir para sucesso
|
664
|
+
|
665
|
+
# === 5) Se não houve 'Aviso' com erro mapeado, considera sucesso ===
|
666
|
+
console.print("Nenhum erro confirmado. Fluxo OK.")
|
667
|
+
try:
|
668
|
+
main_window.close()
|
669
|
+
console.print("Janela principal fechada.")
|
670
|
+
except Exception as e:
|
671
|
+
console.print(f"Falha ao fechar janela principal (ignorado): {e}")
|
590
672
|
|
591
|
-
|
592
|
-
|
593
|
-
console.print("Apuração incluida com sucesso")
|
594
|
-
retorno = "Apuração incluida com sucesso"
|
673
|
+
retorno = "Apuração incluída com sucesso"
|
595
674
|
return RpaRetornoProcessoDTO(
|
596
|
-
sucesso=True,
|
675
|
+
sucesso=True,
|
676
|
+
retorno=retorno,
|
677
|
+
status=RpaHistoricoStatusEnum.Sucesso,
|
597
678
|
)
|
598
|
-
|
599
|
-
console.print("Imagem incluir apuração não encontrada na tela.")
|
679
|
+
|
600
680
|
|
601
681
|
except Exception as erro:
|
602
682
|
|
@@ -607,3 +687,4 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
607
687
|
status=RpaHistoricoStatusEnum.Falha,
|
608
688
|
tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)],
|
609
689
|
)
|
690
|
+
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/ahead_service.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/api/rdp_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/config/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/config/settings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/repeat.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/retry.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/decorators/timeit.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/models/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/tasks/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/env.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/logger.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/toast.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/updater.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.799 → worker_automate_hub-0.5.800}/worker_automate_hub/utils/util.py
RENAMED
File without changes
|
File without changes
|
File without changes
|