ae-base 0.3.70__py3-none-any.whl → 0.3.71__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.
ae/base.py CHANGED
@@ -246,7 +246,7 @@ from types import ModuleType
246
246
  from typing import Any, Callable, Generator, Iterable, MutableMapping, Optional, Union, cast
247
247
 
248
248
 
249
- __version__ = '0.3.70'
249
+ __version__ = '0.3.71'
250
250
 
251
251
 
252
252
  os_path_abspath = os.path.abspath
@@ -1362,17 +1362,20 @@ def url_failure(url: str, token: str = "", username: str = "", password: str = "
1362
1362
  return f"{exception.code} {mask_url(url)} raised HTTPError {exception.reason=}"
1363
1363
 
1364
1364
  except URLError as exception:
1365
- err_prefix = f"996 {mask_url(url)} raised {exception.errno=} {exception.reason=};"
1365
+ err_msg = f" {mask_url(url)} raised {exception.errno=} {exception.reason=};"
1366
1366
  if isinstance(exception.reason, socket.gaierror):
1367
- return f"{err_prefix} could not resolve hostname"
1368
- if isinstance(exception.reason, socket.timeout):
1369
- return f"{err_prefix} connection timed out after {timeout} seconds"
1367
+ return '995' + f"{err_msg} could not resolve hostname"
1370
1368
  if isinstance(exception.reason, ssl.SSLCertVerificationError):
1371
- return f"{err_prefix} SSL certificate verification failed"
1372
- return f"{err_prefix} could not reach the server"
1369
+ return '996' + f"{err_msg} SSL certificate verification failed"
1370
+ if isinstance(exception.reason, socket.timeout):
1371
+ return '997' + f"{err_msg} connection timed out after {timeout} seconds"
1372
+ return '998' + f"{err_msg} could not reach the server"
1373
+
1374
+ except socket.timeout as _exception: # noqa: F841 # str(_exception) could contain password|token
1375
+ return '997' + f" {mask_url(url)} raised socket-timeout exception after {timeout} seconds"
1373
1376
 
1374
- except Exception: # pylint: disable=broad-exception-caught
1375
- return f"999 {mask_url(url)} raised unexpected exception" # NOT put str(_exception) because contains password
1377
+ except Exception as _exception: # noqa: F841 # pylint: disable=broad-exception-caught
1378
+ return '999' + f" {mask_url(url)} raised unexpected exception" # str(_exception) COULD contain password
1376
1379
 
1377
1380
 
1378
1381
  def utc_datetime() -> datetime.datetime:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ae_base
3
- Version: 0.3.70
3
+ Version: 0.3.71
4
4
  Summary: ae namespace module portion base: basic constants, helper functions and context managers
5
5
  Home-page: https://gitlab.com/ae-group/ae_base
6
6
  Author: AndiEcker
@@ -65,13 +65,13 @@ Dynamic: summary
65
65
 
66
66
  <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae v0.3.97 -->
67
67
  <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.namespace_root_tpls v0.3.19 -->
68
- # base 0.3.70
68
+ # base 0.3.71
69
69
 
70
70
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_base/develop?logo=python)](
71
71
  https://gitlab.com/ae-group/ae_base)
72
72
  [![LatestPyPIrelease](
73
- https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.70?logo=python)](
74
- https://gitlab.com/ae-group/ae_base/-/tree/release0.3.70)
73
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.71?logo=python)](
74
+ https://gitlab.com/ae-group/ae_base/-/tree/release0.3.71)
75
75
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_base)](
76
76
  https://pypi.org/project/ae-base/#history)
77
77
 
@@ -0,0 +1,7 @@
1
+ ae/base.py,sha256=_bOfJ1OGOPYqGfPzX5_AyjS_0GVQqQa_dyPfL5l7820,78906
2
+ ae_base-0.3.71.dist-info/licenses/LICENSE.md,sha256=0g3tHWG2bfmLGyuM0e0YzSXT8As8eN1b0VQIqXMWTMg,35003
3
+ ae_base-0.3.71.dist-info/METADATA,sha256=1u-ON7hlDqyVq-JiYQ4ikI-7FmasQrP3PQAc-m1eHpc,5470
4
+ ae_base-0.3.71.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ ae_base-0.3.71.dist-info/top_level.txt,sha256=vUdgAslSmhZLXWU48fm8AG2BjVnkOWLco8rzuW-5zY0,3
6
+ ae_base-0.3.71.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
7
+ ae_base-0.3.71.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- ae/base.py,sha256=hIgo28nJJr6rMV-KLvnfiAREF0wZx5EhQgnGhOANAJs,78705
2
- ae_base-0.3.70.dist-info/licenses/LICENSE.md,sha256=0g3tHWG2bfmLGyuM0e0YzSXT8As8eN1b0VQIqXMWTMg,35003
3
- ae_base-0.3.70.dist-info/METADATA,sha256=HjSggbiVRRnU89mVsTmMUlizZtKTNkxfYz6mo7qVspM,5470
4
- ae_base-0.3.70.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
- ae_base-0.3.70.dist-info/top_level.txt,sha256=vUdgAslSmhZLXWU48fm8AG2BjVnkOWLco8rzuW-5zY0,3
6
- ae_base-0.3.70.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
7
- ae_base-0.3.70.dist-info/RECORD,,