Skip to content

Commit afdaa7e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6114959 commit afdaa7e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nc_py_api/_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def ocs(
216216
if response.status_code == 204: # NO_CONTENT
217217
return []
218218
response_data = loads(response.text)
219-
if response_type == 'json':
219+
if response_type == "json":
220220
return response_data
221221
ocs_meta = response_data["ocs"]["meta"]
222222
if ocs_meta["status"] != "ok":

nc_py_api/nextcloud.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ def ocs(
142142
**kwargs,
143143
):
144144
"""Performs OCS call and returns OCS response payload data."""
145-
return self._session.ocs(method, path, content=content, json=json, response_type=response_type, params=params, **kwargs)
145+
return self._session.ocs(
146+
method, path, content=content, json=json, response_type=response_type, params=params, **kwargs
147+
)
146148

147149
def download_log(self, fp) -> None:
148150
"""Downloads Nextcloud log file. Requires Admin privileges."""

0 commit comments

Comments
 (0)