We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0547ad8 commit 0a22ab3Copy full SHA for 0a22ab3
src/saic_ismart_client_ng/api/base.py
@@ -118,7 +118,7 @@ async def execute_api_call(
118
headers=headers,
119
allow_null_body=allow_null_body,
120
)
121
- if result is None:
+ if result is None and not allow_null_body:
122
msg = f"Failed to execute api call {method} {path}, was expecting a result of type {out_type} got None instead"
123
raise SaicApiException(msg)
124
return result
0 commit comments