esuls 0.1.7__tar.gz → 0.1.8__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.
- {esuls-0.1.7/src/esuls.egg-info → esuls-0.1.8}/PKG-INFO +1 -1
- {esuls-0.1.7 → esuls-0.1.8}/pyproject.toml +1 -1
- {esuls-0.1.7 → esuls-0.1.8}/src/esuls/request_cli.py +4 -2
- {esuls-0.1.7 → esuls-0.1.8/src/esuls.egg-info}/PKG-INFO +1 -1
- {esuls-0.1.7 → esuls-0.1.8}/LICENSE +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/README.md +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/setup.cfg +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/src/esuls/__init__.py +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/src/esuls/db_cli.py +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/src/esuls/download_icon.py +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/src/esuls/utils.py +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/src/esuls.egg-info/SOURCES.txt +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/src/esuls.egg-info/dependency_links.txt +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/src/esuls.egg-info/requires.txt +0 -0
- {esuls-0.1.7 → esuls-0.1.8}/src/esuls.egg-info/top_level.txt +0 -0
|
@@ -249,6 +249,7 @@ async def make_request(
|
|
|
249
249
|
params: Optional[Dict[str, Any]] = None,
|
|
250
250
|
json_data: Optional[JsonType] = None,
|
|
251
251
|
files: Optional[Dict[str, FileData]] = None,
|
|
252
|
+
data: Optional[Union[str, bytes]] = None,
|
|
252
253
|
proxy: Optional[str] = None,
|
|
253
254
|
timeout_request: int = 60,
|
|
254
255
|
max_attempt: int = 10,
|
|
@@ -289,6 +290,7 @@ async def make_request(
|
|
|
289
290
|
files=files_dict,
|
|
290
291
|
headers=request_headers,
|
|
291
292
|
timeout=timeout_request,
|
|
293
|
+
data=data,
|
|
292
294
|
)
|
|
293
295
|
|
|
294
296
|
# Create custom Response object
|
|
@@ -330,8 +332,8 @@ async def make_request(
|
|
|
330
332
|
# Validate JSON response
|
|
331
333
|
if json_response:
|
|
332
334
|
try:
|
|
333
|
-
|
|
334
|
-
if json_response_check and json_response_check not in
|
|
335
|
+
response_data = response.json()
|
|
336
|
+
if json_response_check and json_response_check not in response_data:
|
|
335
337
|
if attempt + 1 == max_attempt:
|
|
336
338
|
return None
|
|
337
339
|
await asyncio.sleep(exception_sleep)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|