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 1b414fb commit 8fd175aCopy full SHA for 8fd175a
nc_py_api/_session.py
@@ -198,6 +198,8 @@ def ocs(
198
raise NextcloudException(408, info=info) from None
199
200
check_error(response, info)
201
+ if response.status_code == 204: # NO_CONTENT
202
+ return ""
203
response_data = loads(response.text)
204
ocs_meta = response_data["ocs"]["meta"]
205
if ocs_meta["status"] != "ok":
0 commit comments