worker-automate-hub 0.5.33__py3-none-any.whl → 0.5.35__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -540,18 +540,10 @@ async def entrada_de_notas_36(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
540
540
  console.print("Erro ao lançar nota", style="bold red")
541
541
  return RpaRetornoProcessoDTO(
542
542
  sucesso=False,
543
- retorno=f"Pop-up nota incluida encontrada, porém nota não encontrada no EMSys - Reprocessar",
543
+ retorno=f"Erro ao lançar nota, erro: {nf_imported.retorno}",
544
544
  status=RpaHistoricoStatusEnum.Falha,
545
545
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
546
546
  )
547
- else:
548
- console.print("Erro ao lançar nota", style="bold red")
549
- return RpaRetornoProcessoDTO(
550
- sucesso=False,
551
- retorno=f"Erro ao lançar nota, erro: {nf_imported.retorno}",
552
- status=RpaHistoricoStatusEnum.Falha,
553
- tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
554
- )
555
547
 
556
548
  except Exception as ex:
557
549
  observacao = f"Erro Processo Entrada de Notas: {str(ex)}"
@@ -611,13 +611,6 @@ async def entrada_de_notas_39(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
611
611
  retorno="Nota Lançada com sucesso!",
612
612
  status=RpaHistoricoStatusEnum.Sucesso,
613
613
  )
614
- else:
615
- return RpaRetornoProcessoDTO(
616
- sucesso=False,
617
- retorno=f"Erro ao lançar nota",
618
- status=RpaHistoricoStatusEnum.Falha,
619
- tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
620
- )
621
614
  except Exception as e:
622
615
  select_box_nop_select.click()
623
616
  return RpaRetornoProcessoDTO(
@@ -654,13 +654,6 @@ async def entrada_de_notas_500(task: RpaProcessoEntradaDTO) -> RpaRetornoProcess
654
654
  retorno="Nota Lançada com sucesso!",
655
655
  status=RpaHistoricoStatusEnum.Sucesso,
656
656
  )
657
- else:
658
- return RpaRetornoProcessoDTO(
659
- sucesso=False,
660
- retorno=f"Erro ao lançar nota",
661
- status=RpaHistoricoStatusEnum.Falha,
662
- tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
663
- )
664
657
  except Exception as e:
665
658
  select_box_nop_select.click()
666
659
  return RpaRetornoProcessoDTO(
@@ -2408,7 +2408,7 @@ async def error_after_xml_imported() -> RpaRetornoProcessoDTO:
2408
2408
  return RpaRetornoProcessoDTO(
2409
2409
  sucesso=False,
2410
2410
  retorno=f"Erro do banco de dados: {control_text} \n",
2411
- status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
2411
+ status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
2412
2412
  )
2413
2413
 
2414
2414
  elif "XML já foi importado anteriormente" in control_text:
@@ -627,15 +627,22 @@ class EMSys:
627
627
  )
628
628
 
629
629
  async def get_xml(self, xml_file):
630
- username = getpass.getuser()
631
- xml_name = f"{xml_file}.xml"
632
- path_to_xml = f"C:\\Users\\{username}\\Downloads\\{xml_name}"
633
- pyautogui.click(722, 792)
634
- await worker_sleep(2)
635
- pyautogui.write(path_to_xml)
636
- await worker_sleep(2)
637
- pyautogui.hotkey("enter")
638
- await worker_sleep(2)
630
+ try:
631
+ username = getpass.getuser()
632
+ xml_name = f"{xml_file}.xml"
633
+ path_to_xml = f"C:\\Users\\{username}\\Downloads\\{xml_name}"
634
+ pyautogui.click(722, 792)
635
+ await worker_sleep(2)
636
+ pyautogui.write(path_to_xml)
637
+ await worker_sleep(2)
638
+ pyautogui.hotkey("enter")
639
+ await worker_sleep(2)
640
+ except Exception as error:
641
+ return RpaRetornoProcessoDTO(
642
+ sucesso=False,
643
+ retorno=f"O xml {xml_name} não foi encontrado em {path_to_xml}",
644
+ status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
645
+ )
639
646
 
640
647
  async def delete_xml(self, nfe_key: str) -> None:
641
648
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.33
3
+ Version: 0.5.35
4
4
  Summary: Worker Automate HUB é uma aplicação para automatizar rotinas de RPA nos ambientes Argenta.
5
5
  Author: Joel Paim
6
6
  Requires-Python: >=3.12,<4.0
@@ -49,9 +49,9 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=JJ1jtExQRXsI2Uvxkl
49
49
  worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=yqPkgD7Mu2GnYUvLsfwznTP2W-3HS0QZDH-HDPXjlMU,33992
50
50
  worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=x7UuPt0qFwleqm48A5x5H8EKA-yQuu-8suWL1rg9IxQ,32844
51
51
  worker_automate_hub/tasks/jobs/entrada_de_notas_34.py,sha256=XPNNjFfYxn1YOtfVfU0nQ3BXOqU1Ri0Bpuhzehpm8lg,32551
52
- worker_automate_hub/tasks/jobs/entrada_de_notas_36.py,sha256=eoWaIlg0BUWQEQY5L5qoK7Ye7zeeazjuTxUbmM-37O0,23485
53
- worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=Ih3bHpq14YkGhw0oYnz0FW2RozyHPVc3gOPLcWJk4k0,36246
54
- worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=wuw2t0R4frdoA7ASuYDYe55zNnof-UYA0KVey_jHV5Y,34265
52
+ worker_automate_hub/tasks/jobs/entrada_de_notas_36.py,sha256=O4SZQRPeaAVFpcA5ByinTeS4Qqy6uY7CSwH4ZWmhxJ4,23080
53
+ worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=2AGX-T_68D54k1YOCzVuEbUpF3PRkqsoL7sdn7H2Yko,35917
54
+ worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=mL3gdnBMkhAWItP66mDmLCfPOTi7Uqy6qBOFpPkZZkM,33924
55
55
  worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=ieROuyLMQ3bUrAuriuUYcFqsEJYn08_lesEhh-o3g3U,15160
56
56
  worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=MEgy5XE7B9L3r7K44fGX4Eq8Xw0x9MKZM-1VRv-Nba0,15861
57
57
  worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=6jI7iCmHqCiIV-2LviVRo_pJcp2Nys8dTZNMGMHXlnA,52823
@@ -72,10 +72,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
72
72
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
73
73
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
74
74
  worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
75
- worker_automate_hub/utils/util.py,sha256=edMz-FlsMhzubxZuI1rp6C29TWQmYdyUoAzEJWgI_R8,129994
76
- worker_automate_hub/utils/utils_nfe_entrada.py,sha256=UfzkgCDjZD-DGkViizpciCkFI2NfWuwRXQsfmt7x6dU,31502
75
+ worker_automate_hub/utils/util.py,sha256=pJBvcZVA8TsrTndUDLx0lgUKoa20aYCAvvkpNizriPg,129994
76
+ worker_automate_hub/utils/utils_nfe_entrada.py,sha256=ZTb1XoKWZY7coXt06iIE8KI56N6AguhZv5DEPX2qUu8,31862
77
77
  worker_automate_hub/worker.py,sha256=CT-poyP1ZYvubArYsnnNd9oJ53SPaDwgr6p6keS3nI4,6248
78
- worker_automate_hub-0.5.33.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
79
- worker_automate_hub-0.5.33.dist-info/METADATA,sha256=6HrJtNJvhwmJVUfnJ3rqGaOrYRDrwAiItTwF6m93Uw4,2894
80
- worker_automate_hub-0.5.33.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
81
- worker_automate_hub-0.5.33.dist-info/RECORD,,
78
+ worker_automate_hub-0.5.35.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
79
+ worker_automate_hub-0.5.35.dist-info/METADATA,sha256=DZ8L9CZykVAmUGYs3tQsCWRm3MoYB5kXJgrHH-fPXMM,2894
80
+ worker_automate_hub-0.5.35.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
81
+ worker_automate_hub-0.5.35.dist-info/RECORD,,