diff --git a/plemmy/lemmyhttp.py b/plemmy/lemmyhttp.py index 941fc15..aac6097 100644 --- a/plemmy/lemmyhttp.py +++ b/plemmy/lemmyhttp.py @@ -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, diff --git a/plemmy/utils.py b/plemmy/utils.py index a4edd80..66f1d0c 100644 --- a/plemmy/utils.py +++ b/plemmy/utils.py @@ -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: