worker-automate-hub 0.5.34__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.
@@ -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.34
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
@@ -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.34.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
79
- worker_automate_hub-0.5.34.dist-info/METADATA,sha256=mkIOYJb9pmXkdv5XVmET1DyJBkchh97hIVch5P9QRlI,2894
80
- worker_automate_hub-0.5.34.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
81
- worker_automate_hub-0.5.34.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,,