worker-automate-hub 0.5.820__py3-none-any.whl → 0.5.821__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.
- worker_automate_hub/api/client.py +3 -2
- worker_automate_hub/tasks/jobs/opex_capex.py +9 -1
- {worker_automate_hub-0.5.820.dist-info → worker_automate_hub-0.5.821.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.820.dist-info → worker_automate_hub-0.5.821.dist-info}/RECORD +6 -6
- {worker_automate_hub-0.5.820.dist-info → worker_automate_hub-0.5.821.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.820.dist-info → worker_automate_hub-0.5.821.dist-info}/entry_points.txt +0 -0
|
@@ -582,8 +582,9 @@ async def get_dados_nf_emsys(
|
|
|
582
582
|
) as session:
|
|
583
583
|
async with session.get(url, headers=headers_basic, params=params) as response:
|
|
584
584
|
if response.status != 200:
|
|
585
|
+
body = await response.text() # ✅ lê o conteúdo do body
|
|
585
586
|
raise Exception(
|
|
586
|
-
f"
|
|
587
|
+
f"({response.status}): {body}"
|
|
587
588
|
)
|
|
588
589
|
|
|
589
590
|
data = await response.json()
|
|
@@ -656,7 +657,7 @@ async def get_dados_nf_emsys(
|
|
|
656
657
|
return resultado
|
|
657
658
|
|
|
658
659
|
except Exception as e:
|
|
659
|
-
raise Exception(f"
|
|
660
|
+
raise Exception(f"{e}")
|
|
660
661
|
|
|
661
662
|
|
|
662
663
|
|
|
@@ -135,8 +135,16 @@ async def opex_capex(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
|
135
135
|
console.print("Chave da NF:", nf_chave_acesso)
|
|
136
136
|
|
|
137
137
|
except Exception as e:
|
|
138
|
+
observacao = f"Erro ao lançar nota, erro: {e}"
|
|
138
139
|
console.print("Erro inesperado ao buscar nota:", str(e))
|
|
139
|
-
|
|
140
|
+
return RpaRetornoProcessoDTO(
|
|
141
|
+
sucesso=False,
|
|
142
|
+
retorno=observacao, # <- use 'retorno'
|
|
143
|
+
status=RpaHistoricoStatusEnum.Falha,
|
|
144
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
|
|
140
148
|
|
|
141
149
|
# Download XML
|
|
142
150
|
console.log("Realizando o download do XML..\n")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
worker_automate_hub/__init__.py,sha256=LV28uQvBfpPIqudGIMJmVB8E941MjXHcu8DMoX5n8AM,25
|
|
2
2
|
worker_automate_hub/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
worker_automate_hub/api/ahead_service.py,sha256=QbNrZf9q7fS0s-S5fZVytqC7dINi9u2f6aB6SDrGVVA,2231
|
|
4
|
-
worker_automate_hub/api/client.py,sha256=
|
|
4
|
+
worker_automate_hub/api/client.py,sha256=FAjwte64gV8EGY9uaZAw1CiZQUcV2pZ9plcDyiv2tqU,32075
|
|
5
5
|
worker_automate_hub/api/datalake_service.py,sha256=qw_N_OOgDKDuPbI-fdYkWWTlT4CUtFTl0VVlZ0fLM-M,3001
|
|
6
6
|
worker_automate_hub/api/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
worker_automate_hub/api/helpers/api_helpers.py,sha256=SkheO2fXexeh-a4shr8Qzsz_kZhuSG0DJ7kbODctRbM,3696
|
|
@@ -89,7 +89,7 @@ worker_automate_hub/tasks/jobs/lancamento_rateio.py,sha256=0cvbpuJiHl5mca5gpZudX
|
|
|
89
89
|
worker_automate_hub/tasks/jobs/login_emsys.py,sha256=dO9S027qRTtjOfytF6IWO-m6hDld8kZqOVAsn91l1YA,5684
|
|
90
90
|
worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py,sha256=_6CFh79eaW9KdPGR6FMV01ASPjJzNzzBK1MvC_uiSOo,5625
|
|
91
91
|
worker_automate_hub/tasks/jobs/notas_faturamento_sap.py,sha256=p6tVE027FHHXBxt2sIDxqLInpf_0wS-8TcACnS34p7w,13961
|
|
92
|
-
worker_automate_hub/tasks/jobs/opex_capex.py,sha256=
|
|
92
|
+
worker_automate_hub/tasks/jobs/opex_capex.py,sha256=RbifCpmacvWAbV3tAabee_I0dxb9lKXMXRrYNRNbMVM,37173
|
|
93
93
|
worker_automate_hub/tasks/jobs/playground.py,sha256=7vWDg9DwToHwGJ6_XOa8TQ6LmfRV5Qz2TaOV3q3P9sA,1918
|
|
94
94
|
worker_automate_hub/tasks/jobs/sped_fiscal.py,sha256=rinyHCF7QYHUc6oWACJgnQiAv0S-_Fel9Z0bImiHUoM,31064
|
|
95
95
|
worker_automate_hub/tasks/jobs/transferencias.py,sha256=5TIktufkvUPnVTR2gf7GFQJ5KQP6PWnmoWiE08WiVDQ,46191
|
|
@@ -104,7 +104,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
|
104
104
|
worker_automate_hub/utils/util.py,sha256=p15z2pqyV-fPD8lL6ulurecsWQw9XpKPFf_xEr4U5lM,210781
|
|
105
105
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=F7jk95LpDwl5WfaQXahCA5yDdnySnWdctDqczHXwGqE,38195
|
|
106
106
|
worker_automate_hub/worker.py,sha256=zEnYUrm5kY2cHbbee15QJkwkx4euD2SB2zRvUIbjS90,6850
|
|
107
|
-
worker_automate_hub-0.5.
|
|
108
|
-
worker_automate_hub-0.5.
|
|
109
|
-
worker_automate_hub-0.5.
|
|
110
|
-
worker_automate_hub-0.5.
|
|
107
|
+
worker_automate_hub-0.5.821.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
|
108
|
+
worker_automate_hub-0.5.821.dist-info/METADATA,sha256=4BeiW0tcjKQrbk1km9U_E658Id7_sNaclBsYTCbn_U0,3100
|
|
109
|
+
worker_automate_hub-0.5.821.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
110
|
+
worker_automate_hub-0.5.821.dist-info/RECORD,,
|
|
File without changes
|
{worker_automate_hub-0.5.820.dist-info → worker_automate_hub-0.5.821.dist-info}/entry_points.txt
RENAMED
|
File without changes
|