From 8634572c34f75a9e618a54caa8e168c11fd8181b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 20 Oct 2023 01:41:30 +0200 Subject: [PATCH] Small docstring fix. --- platypush/plugins/ifttt/__init__.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/platypush/plugins/ifttt/__init__.py b/platypush/plugins/ifttt/__init__.py index 313b26f70..44717e31b 100644 --- a/platypush/plugins/ifttt/__init__.py +++ b/platypush/plugins/ifttt/__init__.py @@ -5,8 +5,8 @@ from platypush.plugins import Plugin, action class IftttPlugin(Plugin): """ - This plugin allows you to interact with the IFTTT maker API - to programmatically trigger your own + This plugin allows you to interact with the `IFTTT maker API + `_ to programmatically trigger your own IFTTT hooks from Platypush - e.g. send a tweet or a Facebook post, create a Todoist item or a Trello task, trigger events on your mobile device, or run any action not natively supported by Platypush but available on your IFTTT @@ -54,12 +54,16 @@ class IftttPlugin(Plugin): if not values: values = [] - response = requests.post(url, json={'value{}'.format(i + 1): v - for (i, v) in enumerate(values)}) + response = requests.post( + url, json={'value{}'.format(i + 1): v for (i, v) in enumerate(values)} + ) if not response.ok: - raise RuntimeError("IFTTT event '{}' error: {}: {}".format( - event_name, response.status_code, response.reason)) + raise RuntimeError( + "IFTTT event '{}' error: {}: {}".format( + event_name, response.status_code, response.reason + ) + ) # vim:sw=4:ts=4:et: