csc-cia-stne 0.0.92__py3-none-any.whl → 0.0.93__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.
@@ -320,7 +320,7 @@ class StoneAdmin:
320
320
  encontrado = True
321
321
 
322
322
  # Algum erro na API Stone Admin - retorna erro
323
- elif 'unauthenticated' in str(response.json()):
323
+ elif response.status_code == 401 and 'unauthenticated' in str(response.json()):
324
324
 
325
325
  self.renew_authorization()
326
326
  return self.verificar_cliente(documento=documento)
@@ -367,6 +367,12 @@ class StoneAdmin:
367
367
  }
368
368
  return retorno_json
369
369
 
370
+ # Algum erro na API Stone Admin - retorna erro
371
+ elif response.status_code == 401 and 'unauthenticated' in str(response.json()):
372
+
373
+ self.renew_authorization()
374
+ return self.verificar_cliente(documento=documento)
375
+
370
376
  # Retorno inesperado pela API Stone Admin - consulta cliente ativo, retorna erro
371
377
  else:
372
378
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csc_cia_stne
3
- Version: 0.0.92
3
+ Version: 0.0.93
4
4
  Summary: Biblioteca do time CSC-CIA utilizada no desenvolvimento de RPAs
5
5
  License: MIT
6
6
  Keywords: karavela,csc,cia,stone,rpa,botcity,stne
@@ -11,7 +11,7 @@ csc_cia_stne/logger_rich.py,sha256=fklgkBb4rblKQd7YZ3q-eWfhGg9eflO2k2-z4pGh_yo,5
11
11
  csc_cia_stne/provio.py,sha256=G-pDnHYLSp97joc7S7dvwjNvl3omnTmvdi3rOPQf5GA,3987
12
12
  csc_cia_stne/servicenow.py,sha256=cJtNtLZ8glWfs3OAzl78ZFlPyPz39CSBxHqpTdUU7i0,32136
13
13
  csc_cia_stne/slack.py,sha256=sPLeaQh_JewLcrBDjjwUgbjtC7d1Np03OTy06JimMV4,8117
14
- csc_cia_stne/stne_admin.py,sha256=l-ybvgAxBAsqveAEHJ_QuYq7G47_XQUbWuq_VnXmvxE,23906
14
+ csc_cia_stne/stne_admin.py,sha256=ggaDT0z6CCmW_IbV6Dlmz51kaoc0MoQwt5ZvdVWAd1Y,24217
15
15
  csc_cia_stne/wacess.py,sha256=g-bWZNpm_tU7UsW1G_rqh_2fW2KShvxZHGOerX8DuQw,26768
16
16
  csc_cia_stne/web.py,sha256=_pc6BzPy2x0RvqtZsByjtKcSuUqlVTevfmmmKbVWLhA,15417
17
17
  csc_cia_stne/utilitarios/__init__.py,sha256=rBGAmW0WcZnwTfVNuikNuJ1RBs6o7aw4xrV2QSsF9Bs,389
@@ -31,8 +31,8 @@ csc_cia_stne/utilitarios/validations/__init__.py,sha256=O_qyEU2ji3u6LHUXZCXvUFsM
31
31
  csc_cia_stne/utilitarios/validations/gcp_bucket.py,sha256=vqj70jBAkazydUCPXIdE3zzgoz8Te2cCJNX_rICX1aM,6096
32
32
  csc_cia_stne/utilitarios/validations/waccess.py,sha256=8yfOrmIPUSLzbCt6P0F6vj3FkSgU_RgrJpJlRhlLyV0,7352
33
33
  csc_cia_stne/utilitarios/validations/web_validator.py,sha256=HYKYSpDv1RvRjZIuwTPt-AbEz-9392MxM_O329iYuSA,5722
34
- csc_cia_stne-0.0.92.dist-info/licenses/LICENCE,sha256=LPGMtgKki2C3KEZP7hDhA1HBrlq5JCHkIeStUCLEMx4,1073
35
- csc_cia_stne-0.0.92.dist-info/METADATA,sha256=85oaauJnelNi2lwprm6TtDBDtbdPenSe3CWlFmYHmsU,1422
36
- csc_cia_stne-0.0.92.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
37
- csc_cia_stne-0.0.92.dist-info/top_level.txt,sha256=ldo7GVv3tQx5KJvwBzdZzzQmjPys2NDVVn1rv0BOF2Q,13
38
- csc_cia_stne-0.0.92.dist-info/RECORD,,
34
+ csc_cia_stne-0.0.93.dist-info/licenses/LICENCE,sha256=LPGMtgKki2C3KEZP7hDhA1HBrlq5JCHkIeStUCLEMx4,1073
35
+ csc_cia_stne-0.0.93.dist-info/METADATA,sha256=zEHOUCx5n1juRgHVKDPOJYpGTi1jA9YSENy55AGlGjA,1422
36
+ csc_cia_stne-0.0.93.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
37
+ csc_cia_stne-0.0.93.dist-info/top_level.txt,sha256=ldo7GVv3tQx5KJvwBzdZzzQmjPys2NDVVn1rv0BOF2Q,13
38
+ csc_cia_stne-0.0.93.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5