Skip to content

Commit

Permalink
pycodestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
tjkessler committed Jun 21, 2023
1 parent 40d12ff commit 8327895
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plemmy/lemmyhttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ def get_community(self, id: int = None,

form = create_form(locals())
form["auth"] = self.key
return get_handler(f"{self._api_url}/community", self._headers, json=None, params=form)
return get_handler(f"{self._api_url}/community", self._headers,
None, params=form)

def get_modlog(self, type_: str, community_id: int = None,
limit: int = None, mod_person_id: int = None,
Expand Down
3 changes: 2 additions & 1 deletion plemmy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def put_handler(url: str, headers: dict, json: dict) -> requests.Response:
return re


def get_handler(url: str, headers: dict, json: dict, params: dict = None) -> requests.Response:
def get_handler(url: str, headers: dict, json: dict,
params: dict = None) -> requests.Response:

logger = logging.getLogger(__name__)
try:
Expand Down

0 comments on commit 8327895

Please sign in to comment.