From 46f5bd1a9aef58232414bb8a7b2071fe7921b977 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 10 Jan 2025 12:03:15 +0100 Subject: [PATCH] Re #2896 204 and other 20x responses are OK --- changedetectionio/apprise_plugin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/apprise_plugin/__init__.py b/changedetectionio/apprise_plugin/__init__.py index ad8392cab1e..a30dbeeb628 100644 --- a/changedetectionio/apprise_plugin/__init__.py +++ b/changedetectionio/apprise_plugin/__init__.py @@ -81,7 +81,7 @@ def apprise_custom_api_call_wrapper(body, title, notify_type, *args, **kwargs): params=params ) - if r.status_code not in (requests.codes.created, requests.codes.ok): + if not (200 <= r.status_code < 300): status_str = f"Error sending '{method.upper()}' request to {url} - Status: {r.status_code}: '{r.reason}'" logger.error(status_str) has_error = True