internal 1.1.15__py3-none-any.whl → 1.1.16__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 internal might be problematic. Click here for more details.

internal/http/requests.py CHANGED
@@ -77,9 +77,7 @@ async def async_request(app: FastAPI, method, url, current_user: dict = None,
77
77
  current_delay = request_retry_delay_initial_seconds
78
78
 
79
79
  while retries <= request_retry_count:
80
- if retries == 0:
81
- app.state.logger.warn(f"【{app.title}】 \nURL: {method} {url} \nkwargs: {kwargs} \n重新嘗試送請求 (第 1 次嘗試)...")
82
- else:
80
+ if retries > 0:
83
81
  app.state.logger.warn(f"【{app.title}】 \nURL: {method} {url} \nkwargs: {kwargs} \n重新嘗試送請求 (第 {retries} 次嘗試)...")
84
82
 
85
83
  try:
@@ -125,9 +123,7 @@ async def send_webhook_message(app: FastAPI, message: str):
125
123
  current_delay = app.state.config.WEBHOOK_RETRY_DELAY_INITIAL_SECONDS
126
124
 
127
125
  while retries <= retry_count:
128
- if retries == 0:
129
- app.state.logger.warn(f"嘗試發送訊息 (第 1 次嘗試)...")
130
- else:
126
+ if retries > 0:
131
127
  app.state.logger.warn(f"重新嘗試發送訊息 (第 {retries} 次嘗試)...")
132
128
 
133
129
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: internal
3
- Version: 1.1.15
3
+ Version: 1.1.16
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -23,7 +23,7 @@ internal/ext/amazon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
23
23
  internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbswOYzhP8,834
24
24
  internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
25
25
  internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- internal/http/requests.py,sha256=4lYIlGv1AwgljNMsvr7hvsombIiKY_NY-sVYRY_sff4,8442
26
+ internal/http/requests.py,sha256=37thwvQdKG9CcsBUAkAmW48axkmy3IvcZUP3U2XkxO4,8176
27
27
  internal/http/responses.py,sha256=zvU0iRQ9-qxeEZfKmuvTi8lv9DFcaNAsHlQKOTCpVzw,2945
28
28
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  internal/interface/base_interface.py,sha256=3YaVjIgLi_pZpLk5SEIk8WVkuICM8qPavT8rB0MdB5U,1536
@@ -34,6 +34,6 @@ internal/model/base_model.py,sha256=hxleV8fYNvFgUoYmCv_inEP3kA4tD4HhCBCNFVK8SZg,
34
34
  internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
35
35
  internal/utils.py,sha256=i6YZdiXsiWnOjRdlJ6afNCGpyMe3Uo9mhm3xlQBy3Ls,2824
36
36
  internal/validator_utils.py,sha256=CqjaVFoAu5MqvBG_AkTP-r7AliWawtUWB851USj4moI,1519
37
- internal-1.1.15.dist-info/METADATA,sha256=H4UF3FhDDqzmck2hOVERS5M-C2XB1nGoq31g0zc5L9o,939
38
- internal-1.1.15.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
39
- internal-1.1.15.dist-info/RECORD,,
37
+ internal-1.1.16.dist-info/METADATA,sha256=tNAJixYBrkkk5BPNxLrpGNCjsrnQMwcgVDxSJWnUekA,939
38
+ internal-1.1.16.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
39
+ internal-1.1.16.dist-info/RECORD,,