most-client 1.0.28__tar.gz → 1.0.29__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.
- {most_client-1.0.28/most_client.egg-info → most_client-1.0.29}/PKG-INFO +1 -1
- {most_client-1.0.28 → most_client-1.0.29}/most/async_api.py +2 -2
- {most_client-1.0.28 → most_client-1.0.29/most_client.egg-info}/PKG-INFO +1 -1
- {most_client-1.0.28 → most_client-1.0.29}/setup.py +1 -1
- {most_client-1.0.28 → most_client-1.0.29}/MANIFEST.in +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/README.md +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most/__init__.py +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most/_constrants.py +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most/api.py +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most/score_calculation.py +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most/types.py +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most_client.egg-info/SOURCES.txt +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most_client.egg-info/dependency_links.txt +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most_client.egg-info/requires.txt +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most_client.egg-info/top_level.txt +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/most_client.egg-info/zip-safe +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/requirements.txt +0 -0
- {most_client-1.0.28 → most_client-1.0.29}/setup.cfg +0 -0
@@ -140,8 +140,8 @@ class AsyncMostClient(object):
|
|
140
140
|
headers=headers,
|
141
141
|
**kwargs)
|
142
142
|
|
143
|
-
if resp.
|
144
|
-
raise RuntimeError(resp.json()['message'])
|
143
|
+
if resp.status_code >= 400:
|
144
|
+
raise RuntimeError(resp.json()['message'] if resp.headers.get("Content-Type") == "application/json" else "Something went wrong.")
|
145
145
|
resp.raise_for_status()
|
146
146
|
return resp
|
147
147
|
|
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
|
File without changes
|
File without changes
|
File without changes
|