lbxtoolkit 2.0.3__tar.gz → 2.0.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lbxtoolkit
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: Biblioteca de ferramentas LBX S/A
5
5
  Author: Cristiano P. Ferrari
6
6
  Author-email: boxferrari@gmail.com
@@ -546,11 +546,11 @@ class api_rest: # Classe para interação com APIs Rest (especialmente Sienge)
546
546
  if not 200 <= CodRet <= 299:
547
547
  try:
548
548
  DicRetorno = eval(Retorno.replace('null','None').replace(r'\n\t',' '))
549
- if 'clientMessage' in DicRetorno:
549
+ if 'clientMessage' in DicRetorno and DicRetorno['clientMessage'] not in ['None', None, '', ' ', 'null']:
550
550
  MsgErro = DicRetorno['clientMessage']
551
- elif 'developerMessage' in DicRetorno:
551
+ elif 'developerMessage' in DicRetorno and DicRetorno['developerMessage'] not in ['None', None, '', ' ', 'null']:
552
552
  MsgErro = DicRetorno['developerMessage']
553
- elif 'message' in DicRetorno:
553
+ elif 'message' in DicRetorno and DicRetorno['message'] not in ['None', None, '', ' ', 'null']:
554
554
  MsgErro = DicRetorno['message']
555
555
  else:
556
556
  MsgErro = Retorno
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lbxtoolkit
3
- Version: 2.0.3
3
+ Version: 2.0.4
4
4
  Summary: Biblioteca de ferramentas LBX S/A
5
5
  Author: Cristiano P. Ferrari
6
6
  Author-email: boxferrari@gmail.com
@@ -8,7 +8,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
8
8
 
9
9
  setup(
10
10
  name='lbxtoolkit',
11
- version='2.0.3',
11
+ version='2.0.4',
12
12
  packages=find_packages(),
13
13
  install_requires=[
14
14
  'psycopg2',
File without changes
File without changes
File without changes