worker-automate-hub 0.5.789__py3-none-any.whl → 0.5.791__py3-none-any.whl

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.

Potentially problematic release.


This version of worker-automate-hub might be problematic. Click here for more details.

@@ -201,6 +201,7 @@ def check_for_update(stop_event: threading.Event):
201
201
  err_msg = f"Erro ao verificar novas versões do pacote: {e}"
202
202
  console.print(f"\n{err_msg}\n", style="bold red")
203
203
  logger.error(err_msg)
204
+ return
204
205
 
205
206
  def close_other_cmd_windows():
206
207
  """
@@ -890,27 +890,31 @@ async def send_to_webhook(
890
890
  "valor_nota": valor_nota,
891
891
  }
892
892
 
893
- try:
894
- async with aiohttp.ClientSession(
895
- connector=aiohttp.TCPConnector(verify_ssl=True)
896
- ) as session:
897
- async with session.post(f"{urlSimplifica}", data=data) as response:
898
- if response.status != 200:
899
- raise Exception(f"Erro ao enviar notificacao: {response.text()}")
900
-
901
- data = await response.text()
902
- log_msg = f"\nSucesso ao enviar {data}\n para o webhook"
903
- console.print(
904
- log_msg,
905
- style="bold green",
906
- )
907
- logger.info(log_msg)
908
-
909
- except Exception as e:
910
- err_msg = f"Erro ao comunicar com endpoint do webhoook: {e}"
911
- console.print(f"\n{err_msg}\n", style="bold red")
912
- logger.info(err_msg)
913
-
893
+ i = 0
894
+ while i < 5:
895
+ try:
896
+
897
+ async with aiohttp.ClientSession(
898
+ connector=aiohttp.TCPConnector(verify_ssl=True)
899
+ ) as session:
900
+ async with session.post(f"{urlSimplifica}", data=data) as response:
901
+ if response.status != 200:
902
+ raise Exception(f"Erro ao enviar notificacao: {response.text()}")
903
+
904
+ data = await response.text()
905
+ log_msg = f"\nSucesso ao enviar {data}\n para o webhook"
906
+ console.print(
907
+ log_msg,
908
+ style="bold green",
909
+ )
910
+ logger.info(log_msg)
911
+ break
912
+ except Exception as e:
913
+ err_msg = f"Erro ao comunicar com endpoint do webhoook: {e}"
914
+ console.print(f"\n{err_msg}\n", style="bold red")
915
+ logger.info(err_msg)
916
+ i += 1
917
+ await worker_sleep(3)
914
918
 
915
919
  def add_start_on_boot_to_registry():
916
920
  import winreg as reg
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: worker-automate-hub
3
- Version: 0.5.789
3
+ Version: 0.5.791
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
@@ -98,11 +98,11 @@ worker_automate_hub/utils/env.py,sha256=TacQjGRO7PUNpttrhTAc5Gnegaiysl2Knsv1P8qf
98
98
  worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1wiaMoJAGZeSy0D37sYdU,2212
99
99
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
100
100
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
101
- worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
102
- worker_automate_hub/utils/util.py,sha256=t_RvTtBdIx6SVR4ulX2eNf5Lvz9WSWukVeqQsC7DmnM,210067
101
+ worker_automate_hub/utils/updater.py,sha256=OBCto6mTt42dTwUOALHg0K2sHaidTLNMRiS8wDjhINM,7988
102
+ worker_automate_hub/utils/util.py,sha256=28-CLCLbkIIpffM082X4BBUlANcqdrzw2MiuW8o9D5U,210256
103
103
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=F7jk95LpDwl5WfaQXahCA5yDdnySnWdctDqczHXwGqE,38195
104
104
  worker_automate_hub/worker.py,sha256=zEnYUrm5kY2cHbbee15QJkwkx4euD2SB2zRvUIbjS90,6850
105
- worker_automate_hub-0.5.789.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
106
- worker_automate_hub-0.5.789.dist-info/METADATA,sha256=HaQMXVdHsph8kakUXOug1NFD38Sm3mIAvN1YvoPO23M,3100
107
- worker_automate_hub-0.5.789.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
108
- worker_automate_hub-0.5.789.dist-info/RECORD,,
105
+ worker_automate_hub-0.5.791.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
106
+ worker_automate_hub-0.5.791.dist-info/METADATA,sha256=ivfhGbBRU0LFSOjWEhTDJ2szaakBWQ-WGgndpFp2p2I,3100
107
+ worker_automate_hub-0.5.791.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
108
+ worker_automate_hub-0.5.791.dist-info/RECORD,,